public interface ExchangeFactoryManager extends StaticService
ExchangeFactory
.Modifier and Type | Method and Description |
---|---|
void |
addExchangeFactory(ExchangeFactory exchangeFactory)
Adds the
ExchangeFactory to be managed. |
int |
getCapacity()
The capacity the pool (for each consumer) uses for storing exchanges.
|
int |
getConsumerCounter()
Number of consumers currently being managed
|
Collection<ExchangeFactory> |
getExchangeFactories()
Returns a read-only view of the managed factories.
|
int |
getPooledCounter()
Number of currently exchanges being pooled (if pooled is in use)
|
PooledObjectFactory.Statistics |
getStatistics()
Aggregated statistics for all the managed exchange factories
|
boolean |
isStatisticsEnabled()
Whether statistics is enabled.
|
void |
purge()
Purges the internal caches (if pooled)
|
void |
removeExchangeFactory(ExchangeFactory exchangeFactory)
Removes the
ExchangeFactory from being managed (such as when a route is stopped/removed) or during
shutdown. |
void |
resetStatistics()
Reset the statistics
|
void |
setStatisticsEnabled(boolean statisticsEnabled)
Whether statistics is enabled.
|
void addExchangeFactory(ExchangeFactory exchangeFactory)
ExchangeFactory
to be managed.exchangeFactory
- the exchange factoryvoid removeExchangeFactory(ExchangeFactory exchangeFactory)
ExchangeFactory
from being managed (such as when a route is stopped/removed) or during
shutdown.exchangeFactory
- the exchange factoryCollection<ExchangeFactory> getExchangeFactories()
int getConsumerCounter()
int getCapacity()
int getPooledCounter()
boolean isStatisticsEnabled()
void setStatisticsEnabled(boolean statisticsEnabled)
void resetStatistics()
void purge()
PooledObjectFactory.Statistics getStatistics()
Apache Camel