org.apache.camel.component.jms
Class JmsPollingConsumer

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

public class JmsPollingConsumer
extends PollingConsumerSupport

Version:
$Revision: 18227 $

Constructor Summary
JmsPollingConsumer(JmsEndpoint endpoint, JmsOperations template)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 JmsEndpoint getEndpoint()
           
 Exchange receive()
           
 Exchange receive(long timeout)
           
 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.impl.ServiceSupport
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, 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,
                          JmsOperations template)
Method Detail

getEndpoint

public JmsEndpoint getEndpoint()
Specified by:
getEndpoint in interface Consumer
Overrides:
getEndpoint in class PollingConsumerSupport

receiveNoWait

public Exchange receiveNoWait()

receive

public Exchange receive()

receive

public Exchange receive(long timeout)

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

setReceiveTimeout

protected void setReceiveTimeout(long timeout)


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.