org.apache.camel.component.mock
Class TimeClause

java.lang.Object
  extended by org.apache.camel.builder.BinaryPredicateSupport
      extended by 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:

Nested Class Summary
 class TimeClause.TimeClassUnit
           
 
Constructor Summary
TimeClause(Expression left, Expression right)
           
 
Method Summary
 void afterPrevious()
           
 void beforeNext()
           
 TimeClause.TimeClassUnit between(int from, int to)
           
protected  String getOperationText()
           
protected  boolean matches(Exchange exchange, Object leftValue, Object rightValue)
           
 TimeClause.TimeClassUnit noLaterThan(int period)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.builder.BinaryPredicateSupport
getLeft, getOperator, getRight, matches, matchesReturningFailureMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimeClause

public TimeClause(Expression left,
                  Expression right)
Method Detail

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