Package io.grpc.internal
Class InternalSubchannel.Callback
java.lang.Object
io.grpc.internal.InternalSubchannel.Callback
- Enclosing class:
InternalSubchannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
Called when the subchannel's in-use state has changed to true, which means at least one transport is in use.(package private) void
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
Called when the subchannel is terminated, which means it's shut down and all transports have been terminated.
-
Constructor Details
-
Callback
Callback()
-
-
Method Details
-
onTerminated
Called when the subchannel is terminated, which means it's shut down and all transports have been terminated. -
onStateChange
Called when the subchannel's connectivity state has changed. -
onInUse
Called when the subchannel's in-use state has changed to true, which means at least one transport is in use. -
onNotInUse
Called when the subchannel's in-use state has changed to false, which means no transport is in use.
-