Package com.comphenix.protocol.async
Interface AsyncRunnable
- All Superinterfaces:
Runnable
A runnable representing a asynchronous event listener.
-
Method Details
-
getID
int getID()Retrieve a unique worker ID.- Returns:
- Unique worker ID.
-
stop
Stop the given runnable.This may not occur right away.
- Returns:
- TRUE if the thread was stopped, FALSE if it was already stopped.
- Throws:
InterruptedException- if it is interrupted
-
isRunning
boolean isRunning()Determine if we're running or not.- Returns:
- TRUE if we're running, FALSE otherwise.
-
isFinished
boolean isFinished()Determine if this runnable has already run its course.- Returns:
- TRUE if it has been stopped, FALSE otherwise.
-