public class EmptyConsumerCache extends ConsumerCache
ConsumerCache which is always empty and does not cache any Consumers.shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
EmptyConsumerCache(Object source,
CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
PollingConsumer |
acquirePollingConsumer(Endpoint endpoint)
Acquires a pooled PollingConsumer which you must release back again after usage using the
ConsumerCache.releasePollingConsumer(org.apache.camel.Endpoint, org.apache.camel.PollingConsumer) method. |
void |
releasePollingConsumer(Endpoint endpoint,
PollingConsumer pollingConsumer)
Releases an acquired producer back after usage.
|
String |
toString() |
cleanUp, createLRUCache, doGetPollingConsumer, doStart, doStop, getCamelContext, getCapacity, getConsumer, getEndpointUtilizationStatistics, getEvicted, getHits, getMisses, getSource, isExtendedStatistics, purge, receive, receive, receiveNoWait, resetCacheStatistics, setExtendedStatistics, sizedoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic EmptyConsumerCache(Object source, CamelContext camelContext)
public PollingConsumer acquirePollingConsumer(Endpoint endpoint)
ConsumerCacheConsumerCache.releasePollingConsumer(org.apache.camel.Endpoint, org.apache.camel.PollingConsumer) method.acquirePollingConsumer in class ConsumerCacheendpoint - the endpointpublic void releasePollingConsumer(Endpoint endpoint, PollingConsumer pollingConsumer)
ConsumerCachereleasePollingConsumer in class ConsumerCacheendpoint - the endpointpollingConsumer - the pollingConsumer to releasepublic String toString()
toString in class ConsumerCacheApache Camel