Interface ExecutionStateSampler.ExecutionState
-
- Enclosing class:
- ExecutionStateSampler
public static interface ExecutionStateSampler.ExecutionStateAnExecutionStateSampler.ExecutionStaterepresents the current state of an execution thread.
-
-
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.
-
-
-
Method Detail
-
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.
-
-