org.apache.camel.impl
Class ConsumerCache
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.ConsumerCache
- All Implemented Interfaces:
- Service, ShutdownableService
public class ConsumerCache
- extends ServiceSupport
Cache containing created Consumer
.
- Version:
- $Revision: 937935 $
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, toString, wait, wait, wait |
ConsumerCache
public ConsumerCache(CamelContext camelContext)
ConsumerCache
public ConsumerCache(CamelContext camelContext,
int maximumCacheSize)
ConsumerCache
public ConsumerCache(CamelContext camelContext,
Map<String,PollingConsumer> cache)
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)
getCamelContext
public CamelContext getCamelContext()
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
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.