Interface AsynchronousContext
-
- All Known Implementing Classes:
ManagedObjectUserStandAlone
public interface AsynchronousContext
Context to be notified about asynchronous operations by theAsynchronousManagedObject
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends java.lang.Throwable>
voidcomplete(AsynchronousOperation<T> operation)
Indicates that theAsynchronousManagedObject
has completed and is ready for another operation.<T extends java.lang.Throwable>
voidstart(AsynchronousOperation<T> operation)
Undertakes anAsynchronousOperation
.
-
-
-
Method Detail
-
start
<T extends java.lang.Throwable> void start(AsynchronousOperation<T> operation)
Undertakes anAsynchronousOperation
.- Type Parameters:
T
- Possible exception type fromAsynchronousOperation
.- Parameters:
operation
- Optional operation to be undertaken, once theAsynchronousManagedObject
is registered as started an asynchronous operation. May benull
.
-
complete
<T extends java.lang.Throwable> void complete(AsynchronousOperation<T> operation)
Indicates that theAsynchronousManagedObject
has completed and is ready for another operation.- Type Parameters:
T
- Possible exception type fromAsynchronousOperation
.- Parameters:
operation
- Optional operation to be undertaken, once theAsynchronousManagedObject
is unregistered from undertaking an asynchronous operation. May benull
.
-
-