|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.nio.IdleStateManager
public class IdleStateManager
Class that checks the idle state of another class.
| Constructor Summary | |
|---|---|
IdleStateManager(int servicePeriodSeconds,
int numInactiveServicesPeriodsPerIdle)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IdleStateManager(int servicePeriodSeconds,
int numInactiveServicesPeriodsPerIdle)
| Method Detail |
|---|
public void reset(IdleStateListener obj)
obj - IdleStateListenerpublic void register(IdleStateListener obj)
public void remove(IdleStateListener obj)
obj - IdleStateListenerpublic boolean isReady()
public void service()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||