- All Implemented Interfaces:
Agent
public abstract class RunnableAgent
extends Object
implements Agent
-
Constructor Summary
Constructors
-
Method Summary
This method is used to run the task and return a
Runnable to cancel it
void
void
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
-
-
Method Details
-
run
This method is used to run the task and return a
Runnable to cancel it
- Parameters:
runnable - the task to run
- Returns:
- the
Runnable to cancel the task
-
start
public void start()
- Specified by:
start in interface Agent
-
stop
public void stop()
- Specified by:
stop in interface Agent