org.gudy.azureus2.pluginsimpl.local.utils
Class UTTimerImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.utils.UTTimerImpl
All Implemented Interfaces:
UTTimer

public class UTTimerImpl
extends java.lang.Object
implements UTTimer


Constructor Summary
protected UTTimerImpl(PluginInterface pi, java.lang.String name, boolean lightweight)
           
protected UTTimerImpl(PluginInterface pi, java.lang.String name, int priority)
           
  UTTimerImpl(java.lang.String name, boolean lightweight)
           
 
Method Summary
 UTTimerEvent addEvent(long when, UTTimerEventPerformer ext_performer)
          Create a single-shot event with delay
 UTTimerEvent addPeriodicEvent(long periodic_millis, UTTimerEventPerformer ext_performer)
          Create a periodic event that will fire every specified number of milliseconds until cancelled or the timer is destroyed
 void destroy()
          Releases resources associated with this timer and renders it unusable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTTimerImpl

public UTTimerImpl(java.lang.String name,
                   boolean lightweight)

UTTimerImpl

protected UTTimerImpl(PluginInterface pi,
                      java.lang.String name,
                      boolean lightweight)

UTTimerImpl

protected UTTimerImpl(PluginInterface pi,
                      java.lang.String name,
                      int priority)
Method Detail

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