public class PrototypeExchangeFactory
extends org.apache.camel.support.PooledObjectFactorySupport<org.apache.camel.Exchange>
implements org.apache.camel.spi.ExchangeFactory
ExchangeFactory that creates a new Exchange instance.camelContext, capacity, pool, source, statistics, statisticsEnabled| Constructor and Description |
|---|
PrototypeExchangeFactory() |
PrototypeExchangeFactory(org.apache.camel.Consumer consumer) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.camel.Exchange |
acquire() |
org.apache.camel.Exchange |
create(boolean autoRelease) |
org.apache.camel.Exchange |
create(org.apache.camel.Endpoint fromEndpoint,
boolean autoRelease) |
protected void |
doBuild() |
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.Consumer |
getConsumer() |
String |
getRouteId() |
boolean |
isPooled() |
org.apache.camel.spi.ExchangeFactory |
newExchangeFactory(org.apache.camel.Consumer consumer) |
boolean |
release(org.apache.camel.Exchange exchange) |
void |
setRouteId(String routeId) |
doShutdown, 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 PrototypeExchangeFactory()
public PrototypeExchangeFactory(org.apache.camel.Consumer consumer)
protected void doBuild()
throws Exception
doBuild in class org.apache.camel.support.PooledObjectFactorySupport<org.apache.camel.Exchange>Exceptionpublic String getRouteId()
getRouteId in interface org.apache.camel.spi.RouteIdAwarepublic void setRouteId(String routeId)
setRouteId in interface org.apache.camel.spi.RouteIdAwarepublic org.apache.camel.Consumer getConsumer()
getConsumer in interface org.apache.camel.spi.ExchangeFactorypublic org.apache.camel.spi.ExchangeFactory newExchangeFactory(org.apache.camel.Consumer consumer)
newExchangeFactory in interface org.apache.camel.spi.ExchangeFactorypublic org.apache.camel.Exchange acquire()
acquire in interface org.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>public org.apache.camel.Exchange create(boolean autoRelease)
create in interface org.apache.camel.spi.ExchangeFactorypublic org.apache.camel.Exchange create(org.apache.camel.Endpoint fromEndpoint,
boolean autoRelease)
create in interface org.apache.camel.spi.ExchangeFactorypublic 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>public boolean isPooled()
isPooled in interface org.apache.camel.spi.PooledObjectFactory<org.apache.camel.Exchange>isPooled in class org.apache.camel.support.PooledObjectFactorySupport<org.apache.camel.Exchange>protected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionApache Camel