org.apache.camel.impl
Class EmptyProducerCache
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.ProducerCache
org.apache.camel.impl.EmptyProducerCache
- All Implemented Interfaces:
- Service, ShutdownableService, StatefulService, SuspendableService
public class EmptyProducerCache
- extends ProducerCache
A ProducerCache
which is always empty and does not cache any Producer
s.
Methods inherited from class org.apache.camel.impl.ProducerCache |
createLRUCache, doGetProducer, doInAsyncProducer, doInProducer, doStart, doStop, getCamelContext, getCapacity, getEvicted, getHits, getMisses, getSource, isEventNotifierEnabled, purge, resetCacheStatistics, send, send, send, sendExchange, setEventNotifierEnabled, size, startProducer |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
EmptyProducerCache
public EmptyProducerCache(Object source,
CamelContext camelContext)
acquireProducer
public Producer acquireProducer(Endpoint endpoint)
- Description copied from class:
ProducerCache
- 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.
- Overrides:
acquireProducer
in class ProducerCache
- Parameters:
endpoint
- the endpoint
- Returns:
- the producer
releaseProducer
public void releaseProducer(Endpoint endpoint,
Producer producer)
throws Exception
- Description copied from class:
ProducerCache
- Releases an acquired producer back after usage.
- Overrides:
releaseProducer
in class ProducerCache
- Parameters:
endpoint
- the endpointproducer
- the producer to release
- Throws:
Exception
- can be thrown if error stopping producer if that was needed.
toString
public String toString()
- Overrides:
toString
in class ProducerCache
Apache Camel