Package g3.project.core
Class Threaded
- java.lang.Object
-
- g3.project.core.Threaded
-
-
Constructor Summary
Constructors Constructor Description Threaded()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.atomic.AtomicBoolean
getRunning()
Getter for runningjava.util.concurrent.atomic.AtomicBoolean
getSuspended()
Getter for suspendedjava.lang.Thread
getThread()
Getter for myThreadabstract void
run()
Run stuff.void
start()
Request start thread activity.void
stop()
Request stop thread activity.protected void
unsuspend()
Unsuspend thread.
-
-
-
Method Detail
-
start
public final void start()
Request start thread activity.
-
stop
public final void stop()
Request stop thread activity.
-
unsuspend
protected final void unsuspend()
Unsuspend thread.
-
getThread
public java.lang.Thread getThread()
Getter for myThread- Returns:
- myThread
-
getRunning
public java.util.concurrent.atomic.AtomicBoolean getRunning()
Getter for running- Returns:
- running
-
getSuspended
public java.util.concurrent.atomic.AtomicBoolean getSuspended()
Getter for suspended- Returns:
- suspended
-
run
public abstract void run()
Run stuff.- Specified by:
run
in interfacejava.lang.Runnable
-
-