org.apache.camel.component.jms
Class JmsPollingConsumer

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.PollingConsumerSupport
          extended by org.apache.camel.component.jms.JmsPollingConsumer
All Implemented Interfaces:
org.apache.camel.Consumer, org.apache.camel.PollingConsumer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class JmsPollingConsumer
extends org.apache.camel.impl.PollingConsumerSupport

Version:

Field Summary
 
Fields inherited from class org.apache.camel.impl.PollingConsumerSupport
log
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
JmsPollingConsumer(JmsEndpoint endpoint, org.springframework.jms.core.JmsOperations template)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 JmsEndpoint getEndpoint()
           
 org.apache.camel.Exchange receive()
           
 org.apache.camel.Exchange receive(long timeout)
           
 org.apache.camel.Exchange receiveNoWait()
           
protected  void setReceiveTimeout(long timeout)
           
 
Methods inherited from class org.apache.camel.impl.PollingConsumerSupport
getExceptionHandler, handleException, setExceptionHandler, toString
 
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, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

JmsPollingConsumer

public JmsPollingConsumer(JmsEndpoint endpoint,
                          org.springframework.jms.core.JmsOperations template)
Method Detail

getEndpoint

public JmsEndpoint getEndpoint()
Specified by:
getEndpoint in interface org.apache.camel.Consumer
Overrides:
getEndpoint in class org.apache.camel.impl.PollingConsumerSupport

receiveNoWait

public org.apache.camel.Exchange receiveNoWait()

receive

public org.apache.camel.Exchange receive()

receive

public org.apache.camel.Exchange receive(long timeout)

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

setReceiveTimeout

protected void setReceiveTimeout(long timeout)


Apache Camel