@Singleton public class OperationManagerImpl extends Object implements OperationManager
| Constructor and Description |
|---|
OperationManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
createAndStartOperation(T scope)
Creates an OperationHandle that will be associated
with the thread calling this method.
|
<T extends Annotation> |
createOperation(T scope)
Creates an OperationHandle.
|
<T extends Annotation> |
getCurrentOperation(T scope)
Gets the current operation of scope type on the current thread.
|
<T extends Annotation> |
getCurrentOperations(T scope)
Gets a set of all Operations that are in state
OperationState.ACTIVE or OperationState.SUSPENDED. |
void |
shutdownAllOperations(Annotation scope)
This method will suspend all currently open operations on all threads and
then close them.
|
public <T extends Annotation> OperationHandle<T> createOperation(T scope)
OperationManagerAnnotationLiteralcreateOperation in interface OperationManagerscope - The scope annotation for this operation typepublic <T extends Annotation> OperationHandle<T> createAndStartOperation(T scope)
OperationManagerAnnotationLiteralcreateAndStartOperation in interface OperationManagerscope - The scope annotation for this operation typepublic <T extends Annotation> Set<OperationHandle<T>> getCurrentOperations(T scope)
OperationManagerOperationState.ACTIVE or OperationState.SUSPENDED.
Operations that are in the OperationState.CLOSED state
are no longer tracked by the Manager.
The scope parameter is normally created with
AnnotationLiteralgetCurrentOperations in interface OperationManagerscope - The scope annotation for this operation typepublic <T extends Annotation> OperationHandle<T> getCurrentOperation(T scope)
OperationManagerAnnotationLiteralgetCurrentOperation in interface OperationManagerscope - The scope annotation for this operation typepublic void shutdownAllOperations(Annotation scope)
OperationManager
The scope parameter is normally created with
AnnotationLiteral
shutdownAllOperations in interface OperationManagerscope - The scope annotation for this operation typeCopyright © 2009-2017 Oracle Corporation. All Rights Reserved.