Package io.grpc.internal
Class ManagedChannelImpl.IdleModeStateAggregator
- java.lang.Object
-
- io.grpc.internal.InUseStateAggregator<java.lang.Object>
-
- io.grpc.internal.ManagedChannelImpl.IdleModeStateAggregator
-
- Enclosing class:
- ManagedChannelImpl
private final class ManagedChannelImpl.IdleModeStateAggregator extends InUseStateAggregator<java.lang.Object>
Must be accessed from syncContext.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIdleModeStateAggregator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidhandleInUse()Called when the aggregated in-use state has changed to true, which means at least one object is in use.protected voidhandleNotInUse()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
-
-
-
-
Method Detail
-
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<java.lang.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<java.lang.Object>
-
-