public abstract class PrototypeObjectFactorySupport<T>
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.PooledObjectFactory<T>
PooledObjectFactory that creates a new instance (does not pool).| Modifier and Type | Class and Description |
|---|---|
protected class |
PrototypeObjectFactorySupport.UtilizationStatistics
Represents utilization statistics
|
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.camel.CamelContext |
camelContext |
protected PrototypeObjectFactorySupport.UtilizationStatistics |
statistics |
protected boolean |
statisticsEnabled |
| Constructor and Description |
|---|
PrototypeObjectFactorySupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doShutdown() |
org.apache.camel.CamelContext |
getCamelContext() |
int |
getCapacity() |
int |
getSize() |
org.apache.camel.spi.PooledObjectFactory.Statistics |
getStatistics() |
boolean |
isPooled() |
boolean |
isStatisticsEnabled() |
void |
purge() |
void |
resetStatistics() |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setCapacity(int capacity) |
void |
setStatisticsEnabled(boolean statisticsEnabled) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doStart, doStop, 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, waitprotected org.apache.camel.CamelContext camelContext
protected final PrototypeObjectFactorySupport.UtilizationStatistics statistics
protected boolean statisticsEnabled
public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic int getSize()
getSize in interface org.apache.camel.spi.PooledObjectFactory<T>public int getCapacity()
getCapacity in interface org.apache.camel.spi.PooledObjectFactory<T>public void setCapacity(int capacity)
setCapacity in interface org.apache.camel.spi.PooledObjectFactory<T>public boolean isStatisticsEnabled()
isStatisticsEnabled in interface org.apache.camel.spi.PooledObjectFactory<T>public void setStatisticsEnabled(boolean statisticsEnabled)
setStatisticsEnabled in interface org.apache.camel.spi.PooledObjectFactory<T>public void resetStatistics()
resetStatistics in interface org.apache.camel.spi.PooledObjectFactory<T>public void purge()
purge in interface org.apache.camel.spi.PooledObjectFactory<T>public org.apache.camel.spi.PooledObjectFactory.Statistics getStatistics()
getStatistics in interface org.apache.camel.spi.PooledObjectFactory<T>public boolean isPooled()
isPooled in interface org.apache.camel.spi.PooledObjectFactory<T>Apache Camel