Package org.omegazero.common.event.task
Class RunnableTask
java.lang.Object
org.omegazero.common.event.task.AbstractTask
org.omegazero.common.event.task.RunnableTask
- All Implemented Interfaces:
Comparable<Task>
,Runnable
,Task
- Since:
- 2.9
-
Constructor Summary
ConstructorsConstructorDescriptionRunnableTask
(Runnable handler) Creates a newRunnableTask
.RunnableTask
(Runnable handler, int priority) Creates a newRunnableTask
. -
Method Summary
Methods inherited from class org.omegazero.common.event.task.AbstractTask
getPriority, run
-
Constructor Details
-
RunnableTask
Creates a newRunnableTask
.- Parameters:
handler
- The task handler
-
RunnableTask
Creates a newRunnableTask
.- Parameters:
handler
- The task handlerpriority
- The priority of this task
-
-
Method Details
-
execute
Description copied from class:AbstractTask
Executes this task with the given arguments.- Specified by:
execute
in classAbstractTask
- Parameters:
args
- The arguments to pass to the task handler- Throws:
Exception
- If an error occurs
-