org.gudy.azureus2.plugins.utils
Interface UTTimer


public interface UTTimer

Author:
parg

Method Summary
 UTTimerEvent addEvent(long when, UTTimerEventPerformer performer)
          Create a single-shot event with delay
 UTTimerEvent addPeriodicEvent(long periodic_millis, UTTimerEventPerformer 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
 

Method Detail

addEvent

UTTimerEvent addEvent(long when,
                      UTTimerEventPerformer performer)
Create a single-shot event with delay

Parameters:
when - when it is to occur (absolute time, not relative)
performer -
Returns:

addPeriodicEvent

UTTimerEvent addPeriodicEvent(long periodic_millis,
                              UTTimerEventPerformer performer)
Create a periodic event that will fire every specified number of milliseconds until cancelled or the timer is destroyed

Parameters:
periodic_millis -
performer -
Returns:

destroy

void destroy()
Releases resources associated with this timer and renders it unusable