Class InternalSubchannel.Callback

  • Enclosing class:
    InternalSubchannel

    abstract static class InternalSubchannel.Callback
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Callback()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) 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.
      (package private) void onNotInUse​(InternalSubchannel is)
      Called when the subchannel's in-use state has changed to false, which means no transport is in use.
      (package private) void onStateChange​(InternalSubchannel is, ConnectivityStateInfo newState)
      Called when the subchannel's connectivity state has changed.
      (package private) void onTerminated​(InternalSubchannel is)
      Called when the subchannel is terminated, which means it's shut down and all transports have been terminated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Callback

        Callback()
    • Method Detail

      • onTerminated

        @ForOverride
        void onTerminated​(InternalSubchannel is)
        Called when the subchannel is terminated, which means it's shut down and all transports have been terminated.
      • 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.