Package io.grpc.internal
Class ManagedChannelImpl.IdleModeStateAggregator
java.lang.Object
io.grpc.internal.InUseStateAggregator<Object>
io.grpc.internal.ManagedChannelImpl.IdleModeStateAggregator
- Enclosing class:
ManagedChannelImpl
Must be accessed from syncContext.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Called when the aggregated in-use state has changed to true, which means at least one object is in use.protected void
Called when the aggregated in-use state has changed to false, which means no object is in use.Methods inherited from class io.grpc.internal.InUseStateAggregator
anyObjectInUse, isInUse, updateObjectInUse
-
Constructor Details
-
IdleModeStateAggregator
private IdleModeStateAggregator()
-
-
Method Details
-
handleInUse
protected void handleInUse()Description copied from class:InUseStateAggregator
Called when the aggregated in-use state has changed to true, which means at least one object is in use.- Specified by:
handleInUse
in classInUseStateAggregator<Object>
-
handleNotInUse
protected void handleNotInUse()Description copied from class:InUseStateAggregator
Called when the aggregated in-use state has changed to false, which means no object is in use.- Specified by:
handleNotInUse
in classInUseStateAggregator<Object>
-