org.apache.camel.bam.processor
Class ActivityMonitorEngine

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

public class ActivityMonitorEngine
extends ServiceSupport
implements Runnable

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

Version:

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.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, 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 ServiceSupport
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Specified by:
doStop in class ServiceSupport
Throws:
Exception


Apache CAMEL