com.atomikos.timing
Class PooledAlarmTimer

java.lang.Object
  extended by com.atomikos.timing.PooledAlarmTimer
All Implemented Interfaces:
AlarmTimer, Runnable

public final class PooledAlarmTimer
extends Object
implements AlarmTimer

An alarm timer for use in a pool of threads.

Author:
Lars J. Nilsson

Constructor Summary
PooledAlarmTimer(long timeout)
           
 
Method Summary
 void addAlarmTimerListener(AlarmTimerListener lstnr)
           
 long getTimeout()
           
 boolean isActive()
           
 void removeAlarmTimerListener(AlarmTimerListener lstnr)
           
 void run()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PooledAlarmTimer

public PooledAlarmTimer(long timeout)
Method Detail

addAlarmTimerListener

public void addAlarmTimerListener(AlarmTimerListener lstnr)
Specified by:
addAlarmTimerListener in interface AlarmTimer

removeAlarmTimerListener

public void removeAlarmTimerListener(AlarmTimerListener lstnr)
Specified by:
removeAlarmTimerListener in interface AlarmTimer

getTimeout

public long getTimeout()
Specified by:
getTimeout in interface AlarmTimer

isActive

public boolean isActive()
Specified by:
isActive in interface AlarmTimer

stop

public void stop()
Specified by:
stop in interface AlarmTimer

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2011. All Rights Reserved.