Package org.apache.camel.impl.engine
Class PrototypeProcessorExchangeFactory
java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.PooledObjectFactorySupport<org.apache.camel.Exchange>
org.apache.camel.impl.engine.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.HasCamelContext,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.UtilizationStatisticsNested 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, statisticsEnabledFields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDINGFields inherited from interface org.apache.camel.spi.ProcessorExchangeFactory
FACTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.camel.Exchangeacquire()org.apache.camel.Exchangecreate(org.apache.camel.Endpoint fromEndpoint, org.apache.camel.ExchangePattern exchangePattern) org.apache.camel.ExchangecreateCopy(org.apache.camel.Exchange exchange) org.apache.camel.ExchangecreateCorrelatedCopy(org.apache.camel.Exchange exchange, boolean handover) protected voiddoStop()getId()org.apache.camel.ProcessorbooleanisPooled()org.apache.camel.spi.ProcessorExchangeFactorynewProcessorExchangeFactory(org.apache.camel.Processor processor) booleanrelease(org.apache.camel.Exchange exchange) voidvoidsetRouteId(String routeId) Methods inherited from class org.apache.camel.support.PooledObjectFactorySupport
doBuild, doShutdown, getCamelContext, getCapacity, getSize, getStatistics, isStatisticsEnabled, purge, resetStatistics, setCamelContext, setCapacity, setStatisticsEnabledMethods 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, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.CamelContextAware
setCamelContextMethods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContextMethods inherited from interface org.apache.camel.spi.IdAware
setGeneratedIdMethods inherited from interface org.apache.camel.spi.PooledObjectFactory
getCapacity, getSize, getStatistics, isStatisticsEnabled, purge, resetStatistics, setCapacity, setStatisticsEnabledMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
PrototypeProcessorExchangeFactory
public PrototypeProcessorExchangeFactory() -
PrototypeProcessorExchangeFactory
public PrototypeProcessorExchangeFactory(org.apache.camel.Processor processor)
-
-
Method Details
-
getRouteId
- Specified by:
getRouteIdin interfaceorg.apache.camel.spi.RouteIdAware
-
setRouteId
- Specified by:
setRouteIdin interfaceorg.apache.camel.spi.RouteIdAware
-
getId
- Specified by:
getIdin interfaceorg.apache.camel.spi.HasId
-
setId
- Specified by:
setIdin interfaceorg.apache.camel.spi.IdAware
-
getProcessor
public org.apache.camel.Processor getProcessor()- Specified by:
getProcessorin interfaceorg.apache.camel.spi.ProcessorExchangeFactory
-
newProcessorExchangeFactory
public org.apache.camel.spi.ProcessorExchangeFactory newProcessorExchangeFactory(org.apache.camel.Processor processor) - Specified by:
newProcessorExchangeFactoryin interfaceorg.apache.camel.spi.ProcessorExchangeFactory
-
createCopy
public org.apache.camel.Exchange createCopy(org.apache.camel.Exchange exchange) - Specified by:
createCopyin interfaceorg.apache.camel.spi.ProcessorExchangeFactory
-
create
public org.apache.camel.Exchange create(org.apache.camel.Endpoint fromEndpoint, org.apache.camel.ExchangePattern exchangePattern) - Specified by:
createin interfaceorg.apache.camel.spi.ProcessorExchangeFactory
-
acquire
public org.apache.camel.Exchange acquire()- Specified by:
acquirein interfaceorg.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>
-
release
public boolean release(org.apache.camel.Exchange exchange) - Specified by:
releasein interfaceorg.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>- Specified by:
releasein interfaceorg.apache.camel.spi.ProcessorExchangeFactory
-
isPooled
public boolean isPooled()- Specified by:
isPooledin interfaceorg.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>- Overrides:
isPooledin classorg.apache.camel.support.PooledObjectFactorySupport<org.apache.camel.Exchange>
-
doStop
- Overrides:
doStopin classorg.apache.camel.support.service.BaseService- Throws:
Exception
-