com.atomikos.timing
Class PooledAlarmTimer
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PooledAlarmTimer
public PooledAlarmTimer(long timeout)
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.