org.openorb.ots.Impl
Class TimeOutControl

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.openorb.ots.Impl.TimeOutControl
All Implemented Interfaces:
java.lang.Runnable

public class TimeOutControl
extends java.lang.Thread

This class provides a Time Out controller that wait 'time_out' seconds.

Author:
Jerome Daniel

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TimeOutControl(Terminator term, int time_out, Logger logger)
          Constructor
 
Method Summary
 void finish()
          Set transaction state to finish
 void proceed()
          This operation is called after time out
 void run()
          Thread entry point
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeOutControl

public TimeOutControl(Terminator term,
                      int time_out,
                      Logger logger)
Constructor

Method Detail

finish

public void finish()
Set transaction state to finish


proceed

public void proceed()
This operation is called after time out


run

public void run()
Thread entry point