org.apache.camel.bam
Class TemporalRule

java.lang.Object
  extended by org.apache.camel.bam.TemporalRule

public class TemporalRule
extends Object

A temporal rule

Version:
$Revision: $

Constructor Summary
TemporalRule(TimeExpression left, TimeExpression right)
           
 
Method Summary
protected  Date add(Date date, long millis)
          Returns the date in the future adding the given number of millis
protected  org.apache.camel.Exchange createExchange()
           
 org.apache.camel.builder.FromBuilder errorIfOver(long millis)
           
 org.apache.camel.builder.FromBuilder errorIfOver(org.apache.camel.util.Time builder)
           
 void evaluate(ProcessContext context, ActivityState activityState)
           
 TemporalRule expectWithin(long millis)
           
 TemporalRule expectWithin(org.apache.camel.util.Time builder)
           
 TimeExpression getFirst()
           
 TimeExpression getSecond()
           
 void processExpired(ActivityState activityState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporalRule

public TemporalRule(TimeExpression left,
                    TimeExpression right)
Method Detail

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.