Package net.i2p.client.impl
Class SessionIdleTimer
java.lang.Object
net.i2p.client.impl.SessionIdleTimer
- All Implemented Interfaces:
SimpleTimer.TimedEvent
Reduce tunnels or shutdown the session on idle if so configured
- Author:
- zzz
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSessionIdleTimer
(I2PAppContext context, I2PSessionImpl session, boolean reduce, boolean shutdown) reduce, shutdown, or both must be true -
Method Summary
Modifier and TypeMethodDescriptionvoid
the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)
-
Field Details
-
MINIMUM_TIME
public static final long MINIMUM_TIME- See Also:
-
-
Constructor Details
-
SessionIdleTimer
public SessionIdleTimer(I2PAppContext context, I2PSessionImpl session, boolean reduce, boolean shutdown) reduce, shutdown, or both must be true
-
-
Method Details
-
timeReached
public void timeReached()Description copied from interface:SimpleTimer.TimedEvent
the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)- Specified by:
timeReached
in interfaceSimpleTimer.TimedEvent
-