org.apache.camel.impl
Class ConsumerCache

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.ConsumerCache
All Implemented Interfaces:
Service

public class ConsumerCache
extends ServiceSupport

Cache containing created Consumer.

Version:
$Revision: 789593 $

Constructor Summary
ConsumerCache()
           
ConsumerCache(Map<String,PollingConsumer> cache)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 PollingConsumer getConsumer(Endpoint endpoint)
           
 Exchange receive(Endpoint endpoint)
           
 Exchange receive(Endpoint endpoint, long timeout)
           
 Exchange receiveNoWait(Endpoint endpoint)
           
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumerCache

public ConsumerCache()

ConsumerCache

public ConsumerCache(Map<String,PollingConsumer> cache)
Method Detail

getConsumer

public PollingConsumer getConsumer(Endpoint endpoint)

receive

public Exchange receive(Endpoint endpoint)

receive

public Exchange receive(Endpoint endpoint,
                        long timeout)

receiveNoWait

public Exchange receiveNoWait(Endpoint endpoint)

doStop

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

doStart

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


Apache CAMEL