org.apache.camel.component.mock
Class TimeClause
java.lang.Object
org.apache.camel.builder.BinaryPredicateSupport
org.apache.camel.component.mock.TimeClause
- All Implemented Interfaces:
- BinaryPredicate, Predicate
public class TimeClause
- extends BinaryPredicateSupport
Represents time based clauses for setting expectations on the mocks.
Such as time constrains for the received messages.
- Version:
TimeClause
public TimeClause(Expression left,
Expression right)
noLaterThan
public TimeClause.TimeClassUnit noLaterThan(int period)
between
public TimeClause.TimeClassUnit between(int from,
int to)
beforeNext
public void beforeNext()
afterPrevious
public void afterPrevious()
matches
protected boolean matches(Exchange exchange,
Object leftValue,
Object rightValue)
- Specified by:
matches
in class BinaryPredicateSupport
getOperationText
protected String getOperationText()
- Specified by:
getOperationText
in class BinaryPredicateSupport
toString
public String toString()
- Overrides:
toString
in class BinaryPredicateSupport
Apache CAMEL