Package org.apache.camel.component.mock
Class TimeClause
java.lang.Object
org.apache.camel.component.mock.TimeClause
- All Implemented Interfaces:
org.apache.camel.BinaryPredicate
,org.apache.camel.Predicate
Represents time based clauses for setting expectations on the mocks. Such as time constrains for the received
messages.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTimeClause
(org.apache.camel.Expression left, org.apache.camel.Expression right) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
between
(int from, int to) org.apache.camel.Expression
getLeft()
protected String
org.apache.camel.Expression
getRight()
boolean
matches
(org.apache.camel.Exchange exchange) protected boolean
matchesReturningFailureMessage
(org.apache.camel.Exchange exchange) noLaterThan
(int period) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.Predicate
init, initPredicate
-
Constructor Details
-
TimeClause
public TimeClause(org.apache.camel.Expression left, org.apache.camel.Expression right)
-
-
Method Details
-
noLaterThan
-
between
-
beforeNext
public void beforeNext() -
afterPrevious
public void afterPrevious() -
getLeft
public org.apache.camel.Expression getLeft()- Specified by:
getLeft
in interfaceorg.apache.camel.BinaryPredicate
-
getRight
public org.apache.camel.Expression getRight()- Specified by:
getRight
in interfaceorg.apache.camel.BinaryPredicate
-
matches
public boolean matches(org.apache.camel.Exchange exchange) - Specified by:
matches
in interfaceorg.apache.camel.Predicate
-
matchesReturningFailureMessage
- Specified by:
matchesReturningFailureMessage
in interfaceorg.apache.camel.BinaryPredicate
-
matches
-
getOperator
- Specified by:
getOperator
in interfaceorg.apache.camel.BinaryPredicate
-
getOperationText
-
toString
-