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 AsynchronousFlow
Provides 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 differentThread
instances of the third party library.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
complete(AsynchronousFlowCompletion completion)
Invoked by application code once theAsynchronousFlow
is complete.
-
-
-
Method Detail
-
complete
void complete(AsynchronousFlowCompletion completion)
Invoked by application code once the
AsynchronousFlow
is complete.Note that only the first invocation of this method is considered. All further invocations are ignored.
Furthermore, if the
AsynchronousFlow
takes too long to complete then all invocations are ignored. TheManagedFunction
will be throwing anAsynchronousFlowTimedOutEscalation
.- Parameters:
completion
-AsynchronousFlowCompletion
to updateManagedObject
state and possibly throw failures.
-
-