Class SpigotRunnableAgent
java.lang.Object
me.hsgamer.topper.agent.runnable.RunnableAgent
me.hsgamer.topper.spigot.agent.runnable.SpigotRunnableAgent
- All Implemented Interfaces:
Agent
-
Constructor Summary
ConstructorsConstructorDescriptionSpigotRunnableAgent
(Runnable runnable, io.github.projectunified.minelib.scheduler.common.scheduler.Scheduler scheduler, long interval) -
Method Summary
Methods inherited from class me.hsgamer.topper.agent.runnable.RunnableAgent
start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.hsgamer.topper.agent.core.Agent
beforeStop
-
Constructor Details
-
SpigotRunnableAgent
public SpigotRunnableAgent(Runnable runnable, io.github.projectunified.minelib.scheduler.common.scheduler.Scheduler scheduler, long interval)
-
-
Method Details
-
run
Description copied from class:RunnableAgent
This method is used to run the task and return aRunnable
to cancel it- Specified by:
run
in classRunnableAgent
- Parameters:
runnable
- the task to run- Returns:
- the
Runnable
to cancel the task
-