public static interface FlightProducer.ServerStreamListener extends OutboundStreamListener
Modifier and Type | Method and Description |
---|---|
boolean |
isCancelled()
Check whether the call has been cancelled.
|
void |
setOnCancelHandler(Runnable handler)
Set a callback for when the client cancels a call, i.e.
|
completed, error, isReady, putMetadata, putNext, putNext, setOnReadyHandler, setUseZeroCopy, start, start, start
boolean isCancelled()
void setOnCancelHandler(Runnable handler)
isCancelled()
has become true.
Note that this callback may only be called some time after isCancelled()
becomes true, and may never
be called if all executor threads on the server are busy, or the RPC method body is implemented in a blocking
fashion.
Copyright © 2023 The Apache Software Foundation. All rights reserved.