org.apache.camel.bam
Class TemporalRule
java.lang.Object
org.apache.camel.bam.TemporalRule
public class TemporalRule
- extends Object
A temporal rule
- Version:
- $Revision: $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemporalRule
public TemporalRule(TimeExpression left,
TimeExpression right)
expectWithin
public TemporalRule expectWithin(org.apache.camel.util.Time builder)
expectWithin
public TemporalRule expectWithin(long millis)
errorIfOver
public org.apache.camel.builder.FromBuilder errorIfOver(org.apache.camel.util.Time builder)
errorIfOver
public org.apache.camel.builder.FromBuilder errorIfOver(long millis)
getFirst
public TimeExpression getFirst()
getSecond
public TimeExpression getSecond()
evaluate
public void evaluate(ProcessContext context,
ActivityState activityState)
processExpired
public void processExpired(ActivityState activityState)
throws Exception
- Throws:
Exception
createExchange
protected org.apache.camel.Exchange createExchange()
add
protected Date add(Date date,
long millis)
- Returns the date in the future adding the given number of millis
- Parameters:
date
- millis
-
- Returns:
- the date in the future
Copyright © 2007 Apache Software Foundation. All Rights Reserved.