java.lang.Object
net.botwithus.rs3.script.threading.ScriptRunner
- All Implemented Interfaces:
Thread.UncaughtExceptionHandler
,ThreadFactory
public final class ScriptRunner
extends Object
implements ThreadFactory, Thread.UncaughtExceptionHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatchEvent
(Runnable event) static ScriptRunner
boolean
void
void
startBackground
(Script script) void
stop()
void
stopAll()
void
stopBackground
(Script script) void
uncaughtException
(Thread t, Throwable e)
-
Constructor Details
-
ScriptRunner
public ScriptRunner()
-
-
Method Details
-
getScriptRunner
-
dispatchEvent
-
start
-
stop
public void stop() -
stopAll
public void stopAll() -
stopBackground
-
startBackground
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-
uncaughtException
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-
hasActiveFuture
public boolean hasActiveFuture()
-