org.gudy.azureus2.pluginsimpl.local.utils
Class UTTimerImpl
java.lang.Object
org.gudy.azureus2.pluginsimpl.local.utils.UTTimerImpl
- All Implemented Interfaces:
- UTTimer
public class UTTimerImpl
- extends Object
- implements UTTimer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTTimerImpl
public UTTimerImpl(String name,
boolean lightweight)
UTTimerImpl
protected UTTimerImpl(PluginInterface pi,
String name,
boolean lightweight)
UTTimerImpl
protected UTTimerImpl(PluginInterface pi,
String name,
int priority)
addEvent
public UTTimerEvent addEvent(long when,
UTTimerEventPerformer ext_performer)
- Description copied from interface:
UTTimer
- Create a single-shot event with delay
- Specified by:
addEvent
in interface UTTimer
- Parameters:
when
- when it is to occur (absolute time, not relative)
- Returns:
addPeriodicEvent
public UTTimerEvent addPeriodicEvent(long periodic_millis,
UTTimerEventPerformer ext_performer)
- Description copied from interface:
UTTimer
- Create a periodic event that will fire every specified number of milliseconds until cancelled
or the timer is destroyed
- Specified by:
addPeriodicEvent
in interface UTTimer
- Returns:
destroy
public void destroy()
- Description copied from interface:
UTTimer
- Releases resources associated with this timer and renders it unusable
- Specified by:
destroy
in interface UTTimer