Class CachedDestinationJndiImplementation

    • Field Detail

      • topics

        protected transient java.util.Map<java.lang.String,​javax.jms.Topic> topics
      • queues

        protected transient java.util.Map<java.lang.String,​javax.jms.Queue> queues
    • Constructor Detail

      • CachedDestinationJndiImplementation

        public CachedDestinationJndiImplementation()
      • CachedDestinationJndiImplementation

        public CachedDestinationJndiImplementation​(int cacheSize)
    • Method Detail

      • getMaxDestinationCacheSize

        public java.lang.Integer getMaxDestinationCacheSize()
        Get the max number of entries in the cache.
        Returns:
        the maximum number of entries.
      • setMaxDestinationCacheSize

        public void setMaxDestinationCacheSize​(java.lang.Integer maxSize)
        Set the max number of entries in the cache.

        Entries will be removed on a least recently accessed basis.

        Parameters:
        maxSize - the maximum number of entries, default 16
      • maxDestinationCacheSize

        public int maxDestinationCacheSize()