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
FlowCallbackthat 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 voidrun()Invoked on completion of successfulFlow.default voidrun(java.lang.Throwable escalation)Default implementation ofFlowCallbackto escalate and then invoke successful handling.
-
-
-
Method Detail
-
run
default void run(java.lang.Throwable escalation) throws java.lang.ThrowableDefault implementation ofFlowCallbackto escalate and then invoke successful handling.- Specified by:
runin interfaceFlowCallback- Parameters:
escalation- PossibleThrowablefrom theFlow.nullindicates allEscalationinstances handled withinFlow.- Throws:
java.lang.Throwable-Escalationwithin the callback logic.
-
run
void run() throws java.lang.Throwable
Invoked on completion of successfulFlow.- Throws:
java.lang.Throwable- Possible failure in handling completion.
-
-