Class InternalSubchannel.Callback

java.lang.Object
io.grpc.internal.InternalSubchannel.Callback
Enclosing class:
InternalSubchannel

abstract static class InternalSubchannel.Callback extends Object
  • Constructor Details

    • Callback

      Callback()
  • Method Details

    • onTerminated

      @ForOverride void onTerminated(InternalSubchannel is)
      Called when the subchannel is terminated, which means it's shut down and all transports have been terminated.
    • onStateChange

      @ForOverride void onStateChange(InternalSubchannel is, ConnectivityStateInfo newState)
      Called when the subchannel's connectivity state has changed.
    • onInUse

      @ForOverride void onInUse(InternalSubchannel is)
      Called when the subchannel's in-use state has changed to true, which means at least one transport is in use.
    • onNotInUse

      @ForOverride void onNotInUse(InternalSubchannel is)
      Called when the subchannel's in-use state has changed to false, which means no transport is in use.