org.apache.camel.bam.rules
Class TemporalRule
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.bam.rules.TemporalRule
- All Implemented Interfaces:
- org.apache.camel.Service
public class TemporalRule
- extends org.apache.camel.impl.ServiceSupport
A temporal rule for use within BAM
- Version:
- $Revision: $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, isStarted, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemporalRule
public TemporalRule(TimeExpression first,
TimeExpression second)
expectWithin
public TemporalRule expectWithin(org.apache.camel.util.Time builder)
expectWithin
public TemporalRule expectWithin(long millis)
errorIfOver
public org.apache.camel.model.OutputType errorIfOver(org.apache.camel.util.Time builder)
errorIfOver
public org.apache.camel.model.OutputType errorIfOver(long millis)
getFirst
public TimeExpression getFirst()
getSecond
public TimeExpression getSecond()
getOverdueAction
public org.apache.camel.Processor getOverdueAction()
throws Exception
- Throws:
Exception
processExchange
public void processExchange(org.apache.camel.Exchange exchange,
ProcessInstance instance)
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
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class org.apache.camel.impl.ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class org.apache.camel.impl.ServiceSupport
- Throws:
Exception
Copyright © 2007 Apache Software Foundation. All Rights Reserved.