openlsd.network.server.common.LSDTimerTask Class Reference

Inheritance diagram for openlsd.network.server.common.LSDTimerTask:

Inheritance graph
[legend]
Collaboration diagram for openlsd.network.server.common.LSDTimerTask:

Collaboration graph
[legend]

List of all members.


Detailed Description

Class to enable a timeout during the wait of session to exit in a business approach.
Author:
Frederic Bregier LGPL

Public Member Functions

 LSDTimerTask (LSDLock lock)
 LSDTimerTask (IoSession session)
void run ()

Private Attributes

IoSession session = null
LSDLock lock = null

Constructor & Destructor Documentation

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.

Parameters:
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.

Parameters:
session 


Member Function Documentation

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.


Member Data Documentation

The associated session object

The associated lock object


The documentation for this class was generated from the following file: