Interface AsynchronousContext
-
- All Known Implementing Classes:
ManagedObjectUserStandAlone
public interface AsynchronousContextContext 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 theAsynchronousManagedObjecthas 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 theAsynchronousManagedObjectis registered as started an asynchronous operation. May benull.
-
complete
<T extends java.lang.Throwable> void complete(AsynchronousOperation<T> operation)
Indicates that theAsynchronousManagedObjecthas completed and is ready for another operation.- Type Parameters:
T- Possible exception type fromAsynchronousOperation.- Parameters:
operation- Optional operation to be undertaken, once theAsynchronousManagedObjectis unregistered from undertaking an asynchronous operation. May benull.
-
-