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 private
IdleModeStateAggregator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleInUse()
Called when the aggregated in-use state has changed to true, which means at least one object is in use.protected void
handleNotInUse()
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: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<java.lang.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<java.lang.Object>
-
-