Class ReschedulingTask
java.lang.Object
de.eldoria.eldoutilities.threading.ReschedulingTask
- Direct Known Subclasses:
QueuingSelfSchedulingTask
,SelfSchedulingWorker
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ReschedulingTask
-
-
Method Details
-
schedule
public void schedule()Schedules the task if it is not running. -
cancel
public void cancel()Cancel the task if it is running. -
shutdown
public void shutdown()Shuts down the scheduler. It can be not scheduled again after this. -
isRunning
public boolean isRunning()Check if the task is running.- Returns:
- true if the task is running
-
isActive
public boolean isActive()Check if the task is active.If the task is not active you cant schedule it.
- Returns:
- true if active
-
run
public abstract void run() -
getPlugin
-