public final class Rules
extends java.lang.Object
RuleSpecification
.Constructor and Description |
---|
Rules() |
Modifier and Type | Method and Description |
---|---|
static <Match extends IPatternMatch> |
newMatcherRuleSpecification(IncQueryMatcher<Match> matcher,
ActivationLifeCycle lifecycle,
java.util.Set<Job<Match>> jobs) |
static <Match extends IPatternMatch> |
newMatcherRuleSpecification(IQuerySpecification<? extends IncQueryMatcher<Match>> querySpecification,
ActivationLifeCycle lifecycle,
java.util.Set<Job<Match>> jobs)
Creates a
RuleSpecification with the given query specification, life-cycle and jobs. |
static <Match extends IPatternMatch> |
newMatcherRuleSpecification(IQuerySpecification<? extends IncQueryMatcher<Match>> querySpecification,
java.util.Set<Job<Match>> jobs)
Creates a
RuleSpecification with the given query specification and jobs,
using the DefaultActivationLifeCycle.DEFAULT life-cycle. |
static <Match extends IPatternMatch> |
newMultiMatchFilter(java.util.Collection<Match> filterMatches,
IncQueryFilterSemantics semantics)
Creates a "multi" event filter that uses the IPatternMatch.isCompatibleWith to check event atoms against a collection
of filter (partial) matches.
|
static <Match extends IPatternMatch> |
newSingleMatchFilter(Match filterMatch)
Creates an event filter that uses the IPatternMatch.isCompatibleWith to check event atoms.
|
public static <Match extends IPatternMatch> RuleSpecification<Match> newMatcherRuleSpecification(IQuerySpecification<? extends IncQueryMatcher<Match>> querySpecification, ActivationLifeCycle lifecycle, java.util.Set<Job<Match>> jobs)
RuleSpecification
with the given query specification, life-cycle and jobs.
For default life-cycle implementations, see DefaultActivationLifeCycle
.querySpecification
- lifecycle
- jobs
- public static <Match extends IPatternMatch> RuleSpecification<Match> newMatcherRuleSpecification(IQuerySpecification<? extends IncQueryMatcher<Match>> querySpecification, java.util.Set<Job<Match>> jobs)
RuleSpecification
with the given query specification and jobs,
using the DefaultActivationLifeCycle.DEFAULT
life-cycle.querySpecification
- jobs
- public static <Match extends IPatternMatch> RuleSpecification<Match> newMatcherRuleSpecification(IncQueryMatcher<Match> matcher, ActivationLifeCycle lifecycle, java.util.Set<Job<Match>> jobs)
public static <Match extends IPatternMatch> EventFilter<Match> newSingleMatchFilter(Match filterMatch)
filterMatch
- non-null match to use for filteringpublic static <Match extends IPatternMatch> EventFilter<Match> newMultiMatchFilter(java.util.Collection<Match> filterMatches, IncQueryFilterSemantics semantics)
IncQueryFilterSemantics
.filterMatches
- non-null match to use for filteringsemantics
- the filter semantics to use