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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTimeClause(org.apache.camel.Expression left, org.apache.camel.Expression right) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbetween(int from, int to) org.apache.camel.ExpressiongetLeft()protected Stringorg.apache.camel.ExpressiongetRight()booleanmatches(org.apache.camel.Exchange exchange) protected booleanmatchesReturningFailureMessage(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, waitMethods 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:
getLeftin interfaceorg.apache.camel.BinaryPredicate
-
getRight
public org.apache.camel.Expression getRight()- Specified by:
getRightin interfaceorg.apache.camel.BinaryPredicate
-
matches
public boolean matches(org.apache.camel.Exchange exchange) - Specified by:
matchesin interfaceorg.apache.camel.Predicate
-
matchesReturningFailureMessage
- Specified by:
matchesReturningFailureMessagein interfaceorg.apache.camel.BinaryPredicate
-
matches
-
getOperator
- Specified by:
getOperatorin interfaceorg.apache.camel.BinaryPredicate
-
getOperationText
-
toString
-