Interface ExchangeFactoryManager

    • Method Detail

      • addExchangeFactory

        void addExchangeFactory​(ExchangeFactory exchangeFactory)
        Adds the ExchangeFactory to be managed.
        Parameters:
        exchangeFactory - the exchange factory
      • removeExchangeFactory

        void removeExchangeFactory​(ExchangeFactory exchangeFactory)
        Removes the ExchangeFactory from being managed (such as when a route is stopped/removed) or during shutdown.
        Parameters:
        exchangeFactory - the exchange factory
      • getExchangeFactories

        Collection<ExchangeFactory> getExchangeFactories()
        Returns a read-only view of the managed factories.
      • getConsumerCounter

        int getConsumerCounter()
        Number of consumers currently being managed
      • getCapacity

        int getCapacity()
        The capacity the pool (for each consumer) uses for storing exchanges. The default capacity is 100.
      • getPooledCounter

        int getPooledCounter()
        Number of currently exchanges being pooled (if pooled is in use)
      • isStatisticsEnabled

        boolean isStatisticsEnabled()
        Whether statistics is enabled.
      • setStatisticsEnabled

        void setStatisticsEnabled​(boolean statisticsEnabled)
        Whether statistics is enabled.
      • resetStatistics

        void resetStatistics()
        Reset the statistics
      • purge

        void purge()
        Purges the internal caches (if pooled)