Class PrototypeProcessorExchangeFactory

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.NonManagedService, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.spi.IdAware, org.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>, org.apache.camel.spi.ProcessorExchangeFactory, org.apache.camel.spi.RouteIdAware, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
    Direct Known Subclasses:
    PooledProcessorExchangeFactory

    public class PrototypeProcessorExchangeFactory
    extends org.apache.camel.support.PooledObjectFactorySupport<org.apache.camel.Exchange>
    implements org.apache.camel.spi.ProcessorExchangeFactory
    ProcessorExchangeFactory that creates a new Exchange instance.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.camel.support.PooledObjectFactorySupport

        org.apache.camel.support.PooledObjectFactorySupport.UtilizationStatistics
      • Nested classes/interfaces inherited from interface org.apache.camel.spi.PooledObjectFactory

        org.apache.camel.spi.PooledObjectFactory.Statistics
    • Field Summary

      • Fields inherited from class org.apache.camel.support.PooledObjectFactorySupport

        camelContext, capacity, pool, source, statistics, statisticsEnabled
      • Fields inherited from class org.apache.camel.support.service.BaseService

        BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
      • Fields inherited from interface org.apache.camel.spi.ProcessorExchangeFactory

        FACTORY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.camel.Exchange acquire()  
      org.apache.camel.Exchange create​(org.apache.camel.Endpoint fromEndpoint, org.apache.camel.ExchangePattern exchangePattern)  
      org.apache.camel.Exchange createCopy​(org.apache.camel.Exchange exchange)  
      org.apache.camel.Exchange createCorrelatedCopy​(org.apache.camel.Exchange exchange, boolean handover)  
      protected void doStop()  
      String getId()  
      org.apache.camel.Processor getProcessor()  
      String getRouteId()  
      boolean isPooled()  
      org.apache.camel.spi.ProcessorExchangeFactory newProcessorExchangeFactory​(org.apache.camel.Processor processor)  
      boolean release​(org.apache.camel.Exchange exchange)  
      void setId​(String id)  
      void setRouteId​(String routeId)  
      • Methods inherited from class org.apache.camel.support.PooledObjectFactorySupport

        doBuild, doShutdown, getCamelContext, getCapacity, getSize, getStatistics, isStatisticsEnabled, purge, resetStatistics, setCamelContext, setCapacity, setStatisticsEnabled
      • Methods inherited from class org.apache.camel.support.service.BaseService

        build, doFail, doInit, doLifecycleChange, doResume, doStart, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
      • Methods inherited from interface org.apache.camel.CamelContextAware

        getCamelContext, setCamelContext
      • Methods inherited from interface org.apache.camel.spi.IdAware

        setGeneratedId
      • Methods inherited from interface org.apache.camel.spi.PooledObjectFactory

        getCapacity, getSize, getStatistics, isStatisticsEnabled, purge, resetStatistics, setCapacity, setStatisticsEnabled
      • Methods inherited from interface org.apache.camel.Service

        build, close, init, start, stop
      • Methods inherited from interface org.apache.camel.ShutdownableService

        shutdown
      • Methods inherited from interface org.apache.camel.StatefulService

        getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
      • Methods inherited from interface org.apache.camel.SuspendableService

        isSuspended, resume, suspend
    • Constructor Detail

      • PrototypeProcessorExchangeFactory

        public PrototypeProcessorExchangeFactory()
      • PrototypeProcessorExchangeFactory

        public PrototypeProcessorExchangeFactory​(org.apache.camel.Processor processor)
    • Method Detail

      • getRouteId

        public String getRouteId()
        Specified by:
        getRouteId in interface org.apache.camel.spi.RouteIdAware
      • setRouteId

        public void setRouteId​(String routeId)
        Specified by:
        setRouteId in interface org.apache.camel.spi.RouteIdAware
      • getId

        public String getId()
        Specified by:
        getId in interface org.apache.camel.spi.HasId
      • setId

        public void setId​(String id)
        Specified by:
        setId in interface org.apache.camel.spi.IdAware
      • getProcessor

        public org.apache.camel.Processor getProcessor()
        Specified by:
        getProcessor in interface org.apache.camel.spi.ProcessorExchangeFactory
      • newProcessorExchangeFactory

        public org.apache.camel.spi.ProcessorExchangeFactory newProcessorExchangeFactory​(org.apache.camel.Processor processor)
        Specified by:
        newProcessorExchangeFactory in interface org.apache.camel.spi.ProcessorExchangeFactory
      • createCopy

        public org.apache.camel.Exchange createCopy​(org.apache.camel.Exchange exchange)
        Specified by:
        createCopy in interface org.apache.camel.spi.ProcessorExchangeFactory
      • createCorrelatedCopy

        public org.apache.camel.Exchange createCorrelatedCopy​(org.apache.camel.Exchange exchange,
                                                              boolean handover)
        Specified by:
        createCorrelatedCopy in interface org.apache.camel.spi.ProcessorExchangeFactory
      • create

        public org.apache.camel.Exchange create​(org.apache.camel.Endpoint fromEndpoint,
                                                org.apache.camel.ExchangePattern exchangePattern)
        Specified by:
        create in interface org.apache.camel.spi.ProcessorExchangeFactory
      • acquire

        public org.apache.camel.Exchange acquire()
        Specified by:
        acquire in interface org.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>
      • release

        public boolean release​(org.apache.camel.Exchange exchange)
        Specified by:
        release in interface org.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>
        Specified by:
        release in interface org.apache.camel.spi.ProcessorExchangeFactory
      • isPooled

        public boolean isPooled()
        Specified by:
        isPooled in interface org.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>
        Overrides:
        isPooled in class org.apache.camel.support.PooledObjectFactorySupport<org.apache.camel.Exchange>
      • doStop

        protected void doStop()
                       throws Exception
        Overrides:
        doStop in class org.apache.camel.support.service.BaseService
        Throws:
        Exception