Interface AsynchronousContext
- All Known Implementing Classes:
ManagedObjectUserStandAlone
public interface AsynchronousContext
Context to be notified about asynchronous operations by the
AsynchronousManagedObject.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescription<T extends Throwable>
voidcomplete(AsynchronousOperation<T> operation) Indicates that theAsynchronousManagedObjecthas completed and is ready for another operation.<T extends Throwable>
voidstart(AsynchronousOperation<T> operation) Undertakes anAsynchronousOperation.
-
Method Details
-
start
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
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.
-