Interface AsynchronousFlow
-
- All Known Implementing Classes:
MockAsynchronousFlow
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface AsynchronousFlowProvides an unmanaged asynchronous flow outside the
ManagedFunction.This allows plugging in other asynchronous libraries to enable asynchronous operations within a
ManagedFunction. This can include running asynchronous operations on differentThreadinstances of the third party library.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcomplete(AsynchronousFlowCompletion completion)Invoked by application code once theAsynchronousFlowis complete.
-
-
-
Method Detail
-
complete
void complete(AsynchronousFlowCompletion completion)
Invoked by application code once the
AsynchronousFlowis complete.Note that only the first invocation of this method is considered. All further invocations are ignored.
Furthermore, if the
AsynchronousFlowtakes too long to complete then all invocations are ignored. TheManagedFunctionwill be throwing anAsynchronousFlowTimedOutEscalation.- Parameters:
completion-AsynchronousFlowCompletionto updateManagedObjectstate and possibly throw failures.
-
-