Package net.officefloor.plugin.clazz
Interface FlowSuccessful
-
- All Superinterfaces:
FlowCallback
- 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 FlowSuccessful extends FlowCallback
FlowCallback
that propagates failures and only handles success.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.frame.api.function.FlowCallback
ESCALATE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
run()
Invoked on completion of successfulFlow
.default void
run(java.lang.Throwable escalation)
Default implementation ofFlowCallback
to escalate and then invoke successful handling.
-
-
-
Method Detail
-
run
default void run(java.lang.Throwable escalation) throws java.lang.Throwable
Default implementation ofFlowCallback
to escalate and then invoke successful handling.- Specified by:
run
in interfaceFlowCallback
- Parameters:
escalation
- PossibleThrowable
from theFlow
.null
indicates allEscalation
instances handled withinFlow
.- Throws:
java.lang.Throwable
-Escalation
within the callback logic.
-
run
void run() throws java.lang.Throwable
Invoked on completion of successfulFlow
.- Throws:
java.lang.Throwable
- Possible failure in handling completion.
-
-