Package com.biglybt.pifimpl.local.utils
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
ConstructorsModifierConstructorDescriptionprotected
UTTimerImpl
(PluginInterface pi, String name, boolean lightweight) protected
UTTimerImpl
(PluginInterface pi, String name, int priority) protected
UTTimerImpl
(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 destroyedvoid
destroy()
int
int
Releases 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:UTTimer
Create a single-shot event with delay -
addPeriodicEvent
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 interfaceUTTimer
- Parameters:
periodic_millis
-ext_performer
-- Returns:
-
getMaxThreads
public int getMaxThreads()Description copied from interface:UTTimer
Releases resources associated with this timer and renders it unusable- Specified by:
getMaxThreads
in interfaceUTTimer
-
getActiveThreads
public int getActiveThreads()- Specified by:
getActiveThreads
in interfaceUTTimer
-
destroy
public void destroy()
-