Class MotorState
java.lang.Object
io.nosqlbench.engine.api.activityimpl.MotorState
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenterState(RunState to) Transition the thread slot to a new state. only accepting valid transitions.get()This is how you share the current slot state most directly, but it has a caveat.void
-
Constructor Details
-
MotorState
-
-
Method Details
-
get
-
getAtomicSlotState
This is how you share the current slot state most directly, but it has a caveat. By sharing the slot state in this way, you allow external changes. You should only use this method to share slot state for observers.- Returns:
- an atomic reference for SlotState
-
enterState
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.
- Parameters:
to- The next SlotState for this thread/slot/motor
-
removeState
public void removeState()
-