public class EmptyConsumerCache extends ConsumerCache
ConsumerCache
which is always empty and does not cache any Consumer
s.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, size
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public EmptyConsumerCache(Object source, CamelContext camelContext)
public PollingConsumer acquirePollingConsumer(Endpoint endpoint)
ConsumerCache
ConsumerCache.releasePollingConsumer(org.apache.camel.Endpoint, org.apache.camel.PollingConsumer)
method.acquirePollingConsumer
in class ConsumerCache
endpoint
- the endpointpublic void releasePollingConsumer(Endpoint endpoint, PollingConsumer pollingConsumer)
ConsumerCache
releasePollingConsumer
in class ConsumerCache
endpoint
- the endpointpollingConsumer
- the pollingConsumer to releasepublic String toString()
toString
in class ConsumerCache
Apache Camel