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 Type
    Method
    Description
    void
    Called when the stream is ready to send additional messages.
    void
    Called when a message is received on the stream.
    void
    onStatusReceived(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 see XdsTransportFactory.StreamingCall.isReady(). Application is free to ignore it.
    • onRecvMessage

      void onRecvMessage(RespT message)
      Called when a message is received on the stream.
    • onStatusReceived

      void onStatusReceived(io.grpc.Status status)
      Called when status is received on the stream.