@Singleton public class OperationManagerImpl extends Object implements OperationManager
| Constructor and Description |
|---|
OperationManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
OperationHandle |
createAndStartOperation(Annotation scope)
Creates an OperationHandle that will be associated
with the thread calling this method.
|
OperationHandle |
createOperation(Annotation scope)
Creates an OperationHandle.
|
List<OperationHandle> |
getCurrentOperations(Annotation scope)
Gets the list 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 OperationHandle createOperation(Annotation scope)
OperationManagerAnnotationLiteralcreateOperation in interface OperationManagerscope - The scope annotation for this operation typepublic OperationHandle createAndStartOperation(Annotation scope)
OperationManagerAnnotationLiteralcreateAndStartOperation in interface OperationManagerscope - The scope annotation for this operation typepublic List<OperationHandle> getCurrentOperations(Annotation 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 void shutdownAllOperations(Annotation scope)
OperationManagerAnnotationLiteralshutdownAllOperations in interface OperationManagerscope - The scope annotation for this operation typeCopyright © 2009-2015 Oracle Corporation. All Rights Reserved.