/** * Creates a filter for message mod-sequence equal to the given value * * @param value * messages with mod-sequence equal to this value will be * selected by the returned criterion * @return <code>Criterion</code>, not null */ public static Criterion modSeqEquals(long value) { return new ModSeqCriterion(new NumericOperator(value, NumericComparator.EQUALS)); }
/** * Creates a filter for message mod-sequence less than the given value * * @param value * messages with mod-sequence less than this value will be * selected by the returned criterion * @return <code>Criterion</code>, not null */ public static Criterion modSeqLessThan(long value) { return new ModSeqCriterion(new NumericOperator(value, NumericComparator.LESS_THAN)); }
/** * Creates a filter for message size equal to the given value * * @param value * messages with size equal to this value will be selected by the * returned criterion * @return <code>Criterion</code>, not null */ public static Criterion sizeEquals(long value) { return new SizeCriterion(new NumericOperator(value, NumericComparator.EQUALS)); }
/** * Creates a filter for message size greater than the given value * * @param value * messages with size greater than this value will be selected by * the returned criterion * @return <code>Criterion</code>, not null */ public static Criterion sizeGreaterThan(long value) { return new SizeCriterion(new NumericOperator(value, NumericComparator.GREATER_THAN)); }
/** * Creates a filter for message mod-sequence greater than the given value * * @param value * messages with mod-sequence greater than this value will be * selected by the returned criterion * @return <code>Criterion</code>, not null */ public static Criterion modSeqGreaterThan(long value) { return new ModSeqCriterion(new NumericOperator(value, NumericComparator.GREATER_THAN)); }
/** * Creates a filter for message size less than the given value * * @param value * messages with size less than this value will be selected by * the returned criterion * @return <code>Criterion</code>, not null */ public static Criterion sizeLessThan(long value) { return new SizeCriterion(new NumericOperator(value, NumericComparator.LESS_THAN)); }