Package io.grpc.xds.client
Interface XdsTransportFactory.EventHandler<RespT>
- All Known Implementing Classes:
ControlPlaneClient.AdsStream,LoadReportClient.LrsStream
- Enclosing interface:
XdsTransportFactory
public static interface XdsTransportFactory.EventHandler<RespT>
An interface for handling events on a streaming call.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonReady()Called when the stream is ready to send additional messages.voidonRecvMessage(RespT message) Called when a message is received on the stream.voidonStatusReceived(io.grpc.Status status) Called when status is received on the stream.
-
Method Details
-
onReady
void onReady()Called when the stream is ready to send additional messages. If called the library use this handler to trigger resource arrival timeout, also seeXdsTransportFactory.StreamingCall.isReady(). Application is free to ignore it. -
onRecvMessage
Called when a message is received on the stream. -
onStatusReceived
void onStatusReceived(io.grpc.Status status) Called when status is received on the stream.
-