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(IncQueryActivationStateEnum incQueryActivationStateEnum,
IMatchProcessor<Match> processor)
Creates a
StatelessJob for the given state with the given processor. |
public static <Match extends IPatternMatch> Job<Match> newStatelessJob(IncQueryActivationStateEnum incQueryActivationStateEnum, IMatchProcessor<Match> processor)
StatelessJob
for the given state with the given processor. A stateless job simply processes the
match in the activation during execution.incQueryActivationStateEnum
- 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
-