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 voidCalled when the aggregated in-use state has changed to true, which means at least one object is in use.protected voidCalled 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:InUseStateAggregatorCalled when the aggregated in-use state has changed to true, which means at least one object is in use.- Specified by:
handleInUsein classInUseStateAggregator<Object>
-
handleNotInUse
protected void handleNotInUse()Description copied from class:InUseStateAggregatorCalled when the aggregated in-use state has changed to false, which means no object is in use.- Specified by:
handleNotInUsein classInUseStateAggregator<Object>
-