Class EhcacheConfiguration

  • All Implemented Interfaces:
    Cloneable

    @UriParams
    public class EhcacheConfiguration
    extends Object
    implements Cloneable
    • Constructor Detail

      • EhcacheConfiguration

        public EhcacheConfiguration()
    • Method Detail

      • setConfigurationUri

        public void setConfigurationUri​(String configurationUri)
        URI pointing to the Ehcache XML configuration file's location
      • getConfigurationUri

        public String getConfigurationUri()
      • hasConfigurationUri

        public boolean hasConfigurationUri()
      • setConfigUri

        @Deprecated
        @Metadata(deprecationNote="use configurationUri instead")
        public void setConfigUri​(String configUri)
        Deprecated.
        URI pointing to the Ehcache XML configuration file's location
      • isCreateCacheIfNotExist

        public boolean isCreateCacheIfNotExist()
      • setCreateCacheIfNotExist

        public void setCreateCacheIfNotExist​(boolean createCacheIfNotExist)
        Configure if a cache need to be created if it does exist or can't be pre-configured.
      • getAction

        public String getAction()
      • setAction

        public void setAction​(String action)
        To configure the default cache action. If an action is set in the message header, then the operation from the header takes precedence.
      • getKey

        public Object getKey()
      • setKey

        public void setKey​(Object key)
        To configure the default action key. If a key is set in the message header, then the key from the header takes precedence.
      • getCacheManager

        public org.ehcache.CacheManager getCacheManager()
      • setCacheManager

        public void setCacheManager​(org.ehcache.CacheManager cacheManager)
        The cache manager
      • hasCacheManager

        public boolean hasCacheManager()
      • getCacheManagerConfiguration

        public org.ehcache.config.Configuration getCacheManagerConfiguration()
      • setCacheManagerConfiguration

        public void setCacheManagerConfiguration​(org.ehcache.config.Configuration cacheManagerConfiguration)
        The cache manager configuration
      • hasCacheManagerConfiguration

        public boolean hasCacheManagerConfiguration()
      • getEventOrdering

        public org.ehcache.event.EventOrdering getEventOrdering()
      • setEventOrdering

        public void setEventOrdering​(String eventOrdering)
        Set the delivery mode (ordered, unordered)
      • setEventOrdering

        public void setEventOrdering​(org.ehcache.event.EventOrdering eventOrdering)
      • getEventFiring

        public org.ehcache.event.EventFiring getEventFiring()
      • setEventFiring

        public void setEventFiring​(String eventFiring)
        Set the delivery mode (synchronous, asynchronous)
      • setEventFiring

        public void setEventFiring​(org.ehcache.event.EventFiring eventFiring)
      • getEventTypes

        public String getEventTypes()
      • getEventTypesSet

        public Set<org.ehcache.event.EventType> getEventTypesSet()
      • setEventTypes

        public void setEventTypes​(String eventTypes)
        Set the type of events to listen for (EVICTED,EXPIRED,REMOVED,CREATED,UPDATED). You can specify multiple entries separated by comma.
      • setConfiguration

        public void setConfiguration​(org.ehcache.config.CacheConfiguration<?,​?> configuration)
        The default cache configuration to be used to create caches.
      • getConfiguration

        public org.ehcache.config.CacheConfiguration<?,​?> getConfiguration()
      • hasConfiguration

        public boolean hasConfiguration()
      • hasConfiguration

        public boolean hasConfiguration​(String name)
      • getConfigurations

        public Map<String,​org.ehcache.config.CacheConfiguration> getConfigurations()
        A map of cache configuration to be used to create caches.
      • setConfigurations

        public void setConfigurations​(Map<String,​org.ehcache.config.CacheConfiguration> configurations)
      • addConfigurations

        public void addConfigurations​(Map<String,​org.ehcache.config.CacheConfiguration> configurations)
      • getKeyType

        public String getKeyType()
      • setKeyType

        public void setKeyType​(String keyType)
        The cache key type, default "java.lang.Object"
      • getValueType

        public String getValueType()
      • setValueType

        public void setValueType​(String valueType)
        The cache value type, default "java.lang.Object"