In that case, you'd return a dummy (no op) listener and immediately call
"serverCall.close(errorStatus, optionalTrailers)" to abort the operation.

----

Josh Humphries

FullStory <https://www.fullstory.com/>  |  Atlanta, GA

Software Engineer

[email protected]

On Sat, Jan 7, 2017 at 3:27 PM, Eugene Strulyov <[email protected]>
wrote:

> What is the proper way to abort a call in grpc-java  ServerInterceptor?
> interceptCall() returns
>
>  ServerCall.Listener() and the javadoc says it must not be null. The only
> examples I found return next.startCall().
>
>
> thanks,
>
>
> Eugene
>
>
> --
> You received this message because you are subscribed to the Google Groups "
> grpc.io" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/grpc-io/51ba9e02-c7b7-447c-8282-61dc9981e7d6%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/51ba9e02-c7b7-447c-8282-61dc9981e7d6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CAO78j%2BJAke%3DD4_UE2vAXTYH7geLFbBQtBvPCgsFOi2j4t72QXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to