@Contract public interface OperationManager
| 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.
|
OperationHandle createOperation(Annotation scope)
AnnotationLiteralscope - The scope annotation for this operation typeOperationHandle createAndStartOperation(Annotation scope)
AnnotationLiteralscope - The scope annotation for this operation typeIllegalStateException - if the current thread is
associated with a different Operation of the same typeList<OperationHandle> getCurrentOperations(Annotation scope)
OperationState.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
AnnotationLiteralscope - The scope annotation for this operation typevoid shutdownAllOperations(Annotation scope)
AnnotationLiteralscope - The scope annotation for this operation typeCopyright © 2009-2015 Oracle Corporation. All Rights Reserved.