@Component(value="cuba_Executions") public class ExecutionsImpl extends java.lang.Object implements Executions
NAME
Constructor and Description |
---|
ExecutionsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
cancelExecution(java.util.UUID userSessionId,
java.lang.String group,
java.lang.String key)
Cancel execution context:
- cancel all resources with context.
|
void |
endExecution()
INTERNAL
End execution context for the current thread.
|
ExecutionContext |
getCurrentContext()
INTERNAL
|
void |
init() |
ExecutionContext |
startExecution(java.lang.String key,
java.lang.String group)
INTERNAL
Start execution context for the current thread.
|
@PostConstruct public void init()
public ExecutionContext startExecution(java.lang.String key, java.lang.String group)
Executions
startExecution
in interface Executions
key
- - unique identifier of executiongroup
- - group is used for grouping execution by type.
E.g. group 'Reporting' is used for all reporting
module executionspublic void endExecution()
Executions
endExecution
in interface Executions
public void cancelExecution(java.util.UUID userSessionId, java.lang.String group, java.lang.String key)
Executions
cancelExecution
in interface Executions
userSessionId
- - user session in that started execution contextgroup
- - group of started execution contextkey
- - key of started execution contextpublic ExecutionContext getCurrentContext()
Executions
getCurrentContext
in interface Executions