Package com.biglybt.pif.utils
Interface UTTimer
- All Known Implementing Classes:
UTTimerImpl
public interface UTTimer
-
Method Summary
Modifier and TypeMethodDescriptionaddEvent
(long when, UTTimerEventPerformer performer) Create a single-shot event with delayaddPeriodicEvent
(long periodic_millis, UTTimerEventPerformer 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
-
Method Details
-
addEvent
Create a single-shot event with delay- Parameters:
when
- when it is to occur (absolute time, not relative)performer
-- Returns:
-
addPeriodicEvent
Create a periodic event that will fire every specified number of milliseconds until cancelled or the timer is destroyed- Parameters:
periodic_millis
-performer
-- Returns:
-
getMaxThreads
int getMaxThreads()Releases resources associated with this timer and renders it unusable -
getActiveThreads
int getActiveThreads() -
destroy
void destroy()
-