Class UTTimerImpl
java.lang.Object
com.biglybt.pifimpl.local.utils.UTTimerImpl
- All Implemented Interfaces:
UTTimer
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUTTimerImpl(PluginInterface pi, String name, boolean lightweight) protectedUTTimerImpl(PluginInterface pi, String name, int priority) protectedUTTimerImpl(PluginInterface pi, String name, int max_threads, int priority) UTTimerImpl(String name, boolean lightweight) -
Method Summary
Modifier and TypeMethodDescriptionaddEvent(long when, UTTimerEventPerformer ext_performer) Create a single-shot event with delayaddPeriodicEvent(long periodic_millis, UTTimerEventPerformer ext_performer) Create a periodic event that will fire every specified number of milliseconds until cancelled or the timer is destroyedvoiddestroy()intintReleases resources associated with this timer and renders it unusable
-
Field Details
-
plugin_interface
-
timer
-
destroyed
private boolean destroyed
-
-
Constructor Details
-
UTTimerImpl
-
UTTimerImpl
-
UTTimerImpl
-
UTTimerImpl
-
-
Method Details
-
addEvent
Description copied from interface:UTTimerCreate a single-shot event with delay -
addPeriodicEvent
Description copied from interface:UTTimerCreate a periodic event that will fire every specified number of milliseconds until cancelled or the timer is destroyed- Specified by:
addPeriodicEventin interfaceUTTimer- Parameters:
periodic_millis-ext_performer-- Returns:
-
getMaxThreads
public int getMaxThreads()Description copied from interface:UTTimerReleases resources associated with this timer and renders it unusable- Specified by:
getMaxThreadsin interfaceUTTimer
-
getActiveThreads
public int getActiveThreads()- Specified by:
getActiveThreadsin interfaceUTTimer
-
destroy
-