org.objectweb.joram.client.jms
Class Session.SessionCloseTask

java.lang.Object
  extended by java.util.TimerTask
      extended by org.objectweb.joram.client.jms.Session.SessionCloseTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Session

private class Session.SessionCloseTask
extends java.util.TimerTask

The SessionCloseTask class is used by non-XA transacted sessions for taking care of closing them if they tend to be pending, and if a transaction timer has been set.


Field Summary
private  long txPendingTimer
           
 
Constructor Summary
Session.SessionCloseTask(long txPendingTimer)
           
 
Method Summary
 void run()
          Method called when the timer expires, actually closing the session.
 void start()
           
 
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

txPendingTimer

private long txPendingTimer
Constructor Detail

Session.SessionCloseTask

Session.SessionCloseTask(long txPendingTimer)
Method Detail

run

public void run()
Method called when the timer expires, actually closing the session.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class java.util.TimerTask

start

public void start()


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.