com.dynamide.util
Class CloseSessionTimerTask

java.lang.Object
  extended by java.util.TimerTask
      extended by com.dynamide.util.CloseSessionTimerTask
All Implemented Interfaces:
java.lang.Runnable

public class CloseSessionTimerTask
extends java.util.TimerTask


Field Summary
static int CLOSE_TIMER_INTERVAL_MILLIS
          The time that elapses before we actually close the ISessionItem and remove it from the db.
static int CLOSE_TIMER_SAFE_MILLIS
          If you are waiting for the table to be clear, use this number. %% KLUDGE.
 
Constructor Summary
CloseSessionTimerTask(ISessionItem sessionItem)
           
 
Method Summary
 void run()
           
static void startCloseSessionTimerTask(ISessionItem sessionItem)
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLOSE_TIMER_INTERVAL_MILLIS

public static final int CLOSE_TIMER_INTERVAL_MILLIS
The time that elapses before we actually close the ISessionItem and remove it from the db.

See Also:
Constant Field Values

CLOSE_TIMER_SAFE_MILLIS

public static final int CLOSE_TIMER_SAFE_MILLIS
If you are waiting for the table to be clear, use this number. %% KLUDGE. Really we should pend the deletes in the session database, mark them as killed, move this code into sessiondatabase, and not show killed sessions except to superuser. %% TODO.

See Also:
Constant Field Values
Constructor Detail

CloseSessionTimerTask

public CloseSessionTimerTask(ISessionItem sessionItem)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask

startCloseSessionTimerTask

public static void startCloseSessionTimerTask(ISessionItem sessionItem)


Copyright © 2001-2013 DYNAMIDE.COM. All Rights Reserved.