Class LruBoundedMessageCache

  • All Implemented Interfaces:
    ComponentLifecycle, MessageCache

    public class LruBoundedMessageCache
    extends java.lang.Object
    implements MessageCache

    A MessageCache implementation that uses an ArrayBlockingQueue to hold the messages.

    Once the internal queue reaches it's limit, the oldest message will be removed and the newer message added.

    You can control the limit of the internal queue by configuring "max-messages".

    In the adapter configuration file this class is aliased as lru-bounded-message-cache which is the preferred alternative to the fully qualified classname when building your configuration.

    • Field Detail

      • log

        protected transient org.slf4j.Logger log
    • Constructor Detail

      • LruBoundedMessageCache

        public LruBoundedMessageCache()