org.apache.camel.bam.processor
Class ActivityMonitorEngine

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.bam.processor.ActivityMonitorEngine
All Implemented Interfaces:
Runnable, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class ActivityMonitorEngine
extends org.apache.camel.support.ServiceSupport
implements Runnable

A timer engine to monitor for expired activities and perform whatever actions are required.

Version:

Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
ActivityMonitorEngine(org.springframework.orm.jpa.JpaTemplate template, org.springframework.transaction.support.TransactionTemplate transactionTemplate, ProcessRules rules)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
protected  void fireExpiredEvent(ActivityState activityState)
           
 boolean isUseLocking()
           
 void run()
           
 void setUseLocking(boolean useLocking)
           
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityMonitorEngine

public ActivityMonitorEngine(org.springframework.orm.jpa.JpaTemplate template,
                             org.springframework.transaction.support.TransactionTemplate transactionTemplate,
                             ProcessRules rules)
Method Detail

isUseLocking

public boolean isUseLocking()

setUseLocking

public void setUseLocking(boolean useLocking)

run

public void run()
Specified by:
run in interface Runnable

fireExpiredEvent

protected void fireExpiredEvent(ActivityState activityState)

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class org.apache.camel.support.ServiceSupport
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Specified by:
doStop in class org.apache.camel.support.ServiceSupport
Throws:
Exception


Apache Camel