org.apache.camel.component.jms
Class JmsPollingConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.PollingConsumerSupport<JmsExchange>
          extended by org.apache.camel.component.jms.JmsPollingConsumer
All Implemented Interfaces:
org.apache.camel.Consumer<JmsExchange>, org.apache.camel.PollingConsumer<JmsExchange>, org.apache.camel.Service

public class JmsPollingConsumer
extends org.apache.camel.impl.PollingConsumerSupport<JmsExchange>

Version:
$Revision: 1.1 $

Constructor Summary
JmsPollingConsumer(JmsEndpoint endpoint, org.springframework.jms.core.JmsOperations template)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 JmsEndpoint getEndpoint()
           
 JmsExchange receive()
           
 JmsExchange receive(long timeout)
           
 JmsExchange 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.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

JmsPollingConsumer

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

getEndpoint

public JmsEndpoint getEndpoint()
Overrides:
getEndpoint in class org.apache.camel.impl.PollingConsumerSupport<JmsExchange>

receiveNoWait

public JmsExchange receiveNoWait()

receive

public JmsExchange receive()

receive

public JmsExchange receive(long timeout)

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

setReceiveTimeout

protected void setReceiveTimeout(long timeout)


Copyright © 2007 Apache Software Foundation. All Rights Reserved.