public class SlotStateTracker extends Object
| Constructor and Description |
|---|
SlotStateTracker(long slotId) |
| Modifier and Type | Method and Description |
|---|---|
void |
enterState(RunState to)
Transition the thread slot to a new state.
|
AtomicReference<RunState> |
getAtomicSlotState()
This is how you share the current slot state most directly, but it has a caveat.
|
RunState |
getSlotState() |
public RunState getSlotState()
public AtomicReference<RunState> getAtomicSlotState()
public void enterState(RunState to)
Transition the thread slot to a new state. only accepting valid transitions.
The valid slot states will be moved to a data type eventually, simplifying this method.
to - The next SlotState for this thread/slot/motorCopyright © 2017. All rights reserved.