public class IdleStateManager extends Object
Constructor and Description |
---|
IdleStateManager(int servicePeriodSeconds,
int numInactiveServicesPeriodsPerIdle) |
Modifier and Type | Method and Description |
---|---|
boolean |
isReady()
Called by a selector to determine when the service run is ready to
be executed.
|
void |
register(IdleStateListener obj) |
void |
remove(IdleStateListener obj)
Called by a listener when they want to remove themselves
|
void |
reset(IdleStateListener obj)
Called by a listener when they want their idle state to be reset.
|
void |
service()
Called by a thread which is managing idle states
|
public IdleStateManager(int servicePeriodSeconds, int numInactiveServicesPeriodsPerIdle)
public void reset(IdleStateListener obj)
obj
- IdleStateListenerpublic void register(IdleStateListener obj)
public void remove(IdleStateListener obj)
obj
- IdleStateListenerpublic boolean isReady()
public void service()
Copyright © 2024. All rights reserved.