Class EmptyConsumerCache

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.cache.DefaultConsumerCache
org.apache.camel.support.cache.EmptyConsumerCache
All Implemented Interfaces:
AutoCloseable, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.ConsumerCache, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class EmptyConsumerCache extends DefaultConsumerCache
A ConsumerCache that does not cache PollingConsumers but instead creates a new consumer on every acquirePollingConsumer(Endpoint) and stops and shuts it down on releasePollingConsumer(Endpoint, PollingConsumer).
Since:
4.21
  • Constructor Details

    • EmptyConsumerCache

      public EmptyConsumerCache(Object source, org.apache.camel.CamelContext camelContext)
  • Method Details