public final class Jobs
extends java.lang.Object
Job.| Modifier and Type | Method and Description |
|---|---|
static <EventAtom> |
newEnableJob(Job<EventAtom> job) |
static <EventAtom> |
newErrorLoggingJob(Job<EventAtom> job) |
static <EventAtom> |
newNopJob(ActivationState activationState)
Creates a
Job that does not have any effect. |
static <Match extends IPatternMatch> |
newStatelessJob(CRUDActivationStateEnum cRUDActivationStateEnum,
java.util.function.Consumer<Match> processor)
Creates a
StatelessJob for the given state with the given processor. |
public static <Match extends IPatternMatch> Job<Match> newStatelessJob(CRUDActivationStateEnum cRUDActivationStateEnum, java.util.function.Consumer<Match> processor)
StatelessJob for the given state with the given processor. A stateless job simply processes the
match in the activation during execution.cRUDActivationStateEnum - processor - public static final <EventAtom> Job<EventAtom> newNopJob(ActivationState activationState)
Job that does not have any effect. Useful when you don't want to do anything for a given
activation state but you want to fire.
Consider using your own LifeCycle instead of Nop jobs!activationState -