public class EmptyProducerCache extends ProducerCache
ProducerCache which is always empty and does not cache any Producers.shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
EmptyProducerCache(Object source,
CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
Producer |
acquireProducer(Endpoint endpoint)
Acquires a pooled producer which you must release back again after usage using the
ProducerCache.releaseProducer(org.apache.camel.Endpoint, org.apache.camel.Producer) method. |
void |
releaseProducer(Endpoint endpoint,
Producer producer)
Releases an acquired producer back after usage.
|
String |
toString() |
createLRUCache, doGetProducer, doInAsyncProducer, doInProducer, doStart, doStop, getCamelContext, getCapacity, getEndpointUtilizationStatistics, getEvicted, getHits, getMisses, getSource, isEventNotifierEnabled, isExtendedStatistics, purge, resetCacheStatistics, send, send, send, sendExchange, setEventNotifierEnabled, setExtendedStatistics, size, startProducerdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic EmptyProducerCache(Object source, CamelContext camelContext)
public Producer acquireProducer(Endpoint endpoint)
ProducerCacheProducerCache.releaseProducer(org.apache.camel.Endpoint, org.apache.camel.Producer) method.acquireProducer in class ProducerCacheendpoint - the endpointpublic void releaseProducer(Endpoint endpoint, Producer producer) throws Exception
ProducerCachereleaseProducer in class ProducerCacheendpoint - the endpointproducer - the producer to releaseException - can be thrown if error stopping producer if that was needed.public String toString()
toString in class ProducerCacheApache Camel