org.apache.camel.component.timer
Class TimerConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer<BeanExchange>
          extended by org.apache.camel.component.timer.TimerConsumer
All Implemented Interfaces:
InvocationHandler, Consumer<BeanExchange>, Service

public class TimerConsumer
extends DefaultConsumer<BeanExchange>
implements InvocationHandler

Version:
$Revision: 523047 $

Constructor Summary
TimerConsumer(TimerEndpoint endpoint, Processor processor)
           
 
Method Summary
 Runnable createProxy()
          Creates a Proxy which generates the inbound PojoExchanges
protected  void doStart()
           
protected  void doStop()
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
getEndpoint, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString
 
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, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

TimerConsumer

public TimerConsumer(TimerEndpoint endpoint,
                     Processor processor)
Method Detail

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class DefaultConsumer<BeanExchange>
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class DefaultConsumer<BeanExchange>
Throws:
Exception

createProxy

public Runnable createProxy()
Creates a Proxy which generates the inbound PojoExchanges


invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2007 Apache Software Foundation. All Rights Reserved.