org.apache.camel.impl
Class EmptyProducerCache

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.ProducerCache
          extended by 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 Producers.


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
EmptyProducerCache(Object source, CamelContext camelContext)
           
 
Method Summary
 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()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmptyProducerCache

public EmptyProducerCache(Object source,
                          CamelContext camelContext)
Method Detail

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 endpoint
producer - 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