Interface ExecutionStateSampler.ExecutionState
-
- Enclosing class:
- ExecutionStateSampler
public static interface ExecutionStateSampler.ExecutionStateAnExecutionStateSampler.ExecutionStaterepresents the current state of an execution thread.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceExecutionStateSampler.ExecutionState.ActiveState
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate()Activates this execution state within theExecutionStateSampler.ExecutionStateTracker.voiddeactivate()Restores the previously active execution state within theExecutionStateSampler.ExecutionStateTracker.booleanerror()Sets the error state to the currently executing state.ExecutionStateSampler.ExecutionState.ActiveStatescopedActivate()Activates this execution state within theExecutionStateSampler.ExecutionStateTracker.
-
-
-
Method Detail
-
scopedActivate
ExecutionStateSampler.ExecutionState.ActiveState scopedActivate()
Activates this execution state within theExecutionStateSampler.ExecutionStateTracker. The returned closable will restore the previously active execution state.Must only be invoked by the bundle processing thread.
-
activate
void activate()
Activates this execution state within theExecutionStateSampler.ExecutionStateTracker.Must only be invoked by the bundle processing thread.
-
deactivate
void deactivate()
Restores the previously active execution state within theExecutionStateSampler.ExecutionStateTracker.Must only be invoked by the bundle processing thread.
-
error
boolean error()
Sets the error state to the currently executing state. Returns true if this was the first time the error was set. Returns false otherwise.This can only be set once.
-
-