public static interface FlightClient.PutListener extends FlightProducer.StreamListener<PutResult>
Generally, instead of implementing this yourself, you should use AsyncPutListener
or SyncPutListener
.
Modifier and Type | Method and Description |
---|---|
void |
getResult()
Wait for the stream to finish on the server side.
|
default boolean |
isCancelled()
Check if the call has been cancelled.
|
void |
onNext(PutResult val)
Called when a message from the server is received.
|
onCompleted, onError
void getResult()
void onNext(PutResult val)
onNext
in interface FlightProducer.StreamListener<PutResult>
val
- The application metadata. This buffer will be reclaimed once onNext returns; you must retain a
reference to use it outside this method.default boolean isCancelled()
By default, this always returns false. Implementations should provide an appropriate implementation, as otherwise, a DoPut operation may inadvertently block forever.
Copyright © 2023 The Apache Software Foundation. All rights reserved.