public final class PooledExchangeFactory extends PrototypeExchangeFactory
ExchangeFactory that reuses Exchange instance from a pool.camelContext, capacity, pool, source, statistics, statisticsEnabled| Constructor and Description |
|---|
PooledExchangeFactory() |
PooledExchangeFactory(org.apache.camel.Consumer consumer) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Exchange |
create(boolean autoRelease) |
org.apache.camel.Exchange |
create(org.apache.camel.Endpoint fromEndpoint,
boolean autoRelease) |
protected org.apache.camel.PooledExchange |
createPooledExchange(org.apache.camel.Endpoint fromEndpoint,
boolean autoRelease) |
protected void |
doBuild() |
protected void |
doStop() |
boolean |
isPooled() |
org.apache.camel.spi.ExchangeFactory |
newExchangeFactory(org.apache.camel.Consumer consumer) |
boolean |
release(org.apache.camel.Exchange exchange) |
acquire, doStart, getConsumer, getRouteId, setRouteIddoShutdown, getCamelContext, getCapacity, getSize, getStatistics, isStatisticsEnabled, purge, resetStatistics, setCamelContext, setCapacity, setStatisticsEnabledbuild, doFail, doInit, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCapacity, getSize, getStatistics, isStatisticsEnabled, purge, resetStatistics, setCapacity, setStatisticsEnabledgetCamelContext, setCamelContext, trySetCamelContextpublic PooledExchangeFactory()
public PooledExchangeFactory(org.apache.camel.Consumer consumer)
protected void doBuild()
throws Exception
doBuild in class PrototypeExchangeFactoryExceptionpublic org.apache.camel.spi.ExchangeFactory newExchangeFactory(org.apache.camel.Consumer consumer)
newExchangeFactory in interface org.apache.camel.spi.ExchangeFactorynewExchangeFactory in class PrototypeExchangeFactorypublic org.apache.camel.Exchange create(boolean autoRelease)
create in interface org.apache.camel.spi.ExchangeFactorycreate in class PrototypeExchangeFactorypublic org.apache.camel.Exchange create(org.apache.camel.Endpoint fromEndpoint,
boolean autoRelease)
create in interface org.apache.camel.spi.ExchangeFactorycreate in class PrototypeExchangeFactorypublic boolean release(org.apache.camel.Exchange exchange)
release in interface org.apache.camel.spi.ExchangeFactoryrelease in interface org.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>release in class PrototypeExchangeFactoryprotected org.apache.camel.PooledExchange createPooledExchange(org.apache.camel.Endpoint fromEndpoint,
boolean autoRelease)
public boolean isPooled()
isPooled in interface org.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>isPooled in class PrototypeExchangeFactoryprotected void doStop()
throws Exception
doStop in class PrototypeExchangeFactoryExceptionApache Camel