Public Member Functions | |
LSDTimerTask (LSDLock lock) | |
LSDTimerTask (IoSession session) | |
void | run () |
Private Attributes | |
IoSession | session = null |
LSDLock | lock = null |
openlsd.network.server.common.LSDTimerTask.LSDTimerTask | ( | LSDLock | lock | ) |
Create a TimerTask from a Lock that says when it is finished. The lock must be not locked before this call. When it is over timed, the lock will be unlock.
lock |
openlsd.network.server.common.LSDTimerTask.LSDTimerTask | ( | IoSession | session | ) |
Create a TimerTask from a session. When it is over timed, the session will be closed.
session |
void openlsd.network.server.common.LSDTimerTask.run | ( | ) |
Function that set the timer to timeoout so that any functions that will wait can stop its waiting. If this is a session initialized TimerTask, the session will be closed. If this is a lock initialized TimerTask, the lock will be unlocked.
IoSession openlsd.network.server.common.LSDTimerTask.session = null [private] |
The associated session object
LSDLock openlsd.network.server.common.LSDTimerTask.lock = null [private] |
The associated lock object