public class EmptyProducerCache extends ProducerCache
ProducerCache
which is always empty and does not cache any Producer
s.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, getEvicted, getHits, getMisses, getSource, isEventNotifierEnabled, purge, resetCacheStatistics, send, send, send, sendExchange, setEventNotifierEnabled, size, startProducer
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public EmptyProducerCache(Object source, CamelContext camelContext)
public Producer acquireProducer(Endpoint endpoint)
ProducerCache
ProducerCache.releaseProducer(org.apache.camel.Endpoint, org.apache.camel.Producer)
method.acquireProducer
in class ProducerCache
endpoint
- the endpointpublic void releaseProducer(Endpoint endpoint, Producer producer) throws Exception
ProducerCache
releaseProducer
in class ProducerCache
endpoint
- the endpointproducer
- the producer to releaseException
- can be thrown if error stopping producer if that was needed.public String toString()
toString
in class ProducerCache
Apache Camel