Package com.evolveum.axiom.reactor
Interface Action<E extends Exception>
-
- All Superinterfaces:
Dependency<Void>
- All Known Subinterfaces:
DependantAction<E>
- All Known Implementing Classes:
ValueActionImpl
public interface Action<E extends Exception> extends Dependency<Void>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.axiom.reactor.Dependency
Dependency.Immediate<V>, Dependency.OptionalDep<T>, Dependency.Search<T>, Dependency.Suppliable<V>, Dependency.Unsatified<V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
apply()
boolean
canApply()
Returns true if action can be applied.Optional<E>
error()
void
fail(Exception e)
default Void
get()
default boolean
isSatisfied()
boolean
successful()
-
Methods inherited from interface com.evolveum.axiom.reactor.Dependency
errorMessage, flatMap, isRequired, map, unsatisfied
-
-
-
-
Method Detail
-
apply
void apply()
-
isSatisfied
default boolean isSatisfied()
- Specified by:
isSatisfied
in interfaceDependency<E extends Exception>
-
get
default Void get()
- Specified by:
get
in interfaceDependency<E extends Exception>
-
successful
boolean successful()
-
canApply
boolean canApply()
Returns true if action can be applied. Return false if action application of action failed with exception, which is non-retriable.- Returns:
-
-