org.ehcache.config
Interface CacheRuntimeConfiguration<K,V>

Type Parameters:
K - the type of the keys used to access data within the cache
V - the type of the values held within the cache
All Superinterfaces:
CacheConfiguration<K,V>

public interface CacheRuntimeConfiguration<K,V>
extends CacheConfiguration<K,V>

Represents the configuration currently used by a Cache. It only exposes mutative operations for attributes that can be changed on a "RUNNING" Cache instance.


Method Summary
 void deregisterCacheEventListener(CacheEventListener<? super K,? super V> listener)
          Allows for deregistering of a previously registered CacheEventListener instance
 void registerCacheEventListener(CacheEventListener<? super K,? super V> listener, EventOrdering ordering, EventFiring firing, java.util.Set<EventType> forEventTypes)
          Allows for registering CacheEventListener on the cache
 void updateResourcePools(ResourcePools pools)
          updates ResourcePools
 
Methods inherited from interface org.ehcache.config.CacheConfiguration
getClassLoader, getEvictionPrioritizer, getEvictionVeto, getExpiry, getKeyType, getResourcePools, getServiceConfigurations, getValueType
 

Method Detail

registerCacheEventListener

void registerCacheEventListener(CacheEventListener<? super K,? super V> listener,
                                EventOrdering ordering,
                                EventFiring firing,
                                java.util.Set<EventType> forEventTypes)
Allows for registering CacheEventListener on the cache

Parameters:
listener - the listener instance to register
ordering - the EventOrdering to invoke this listener
firing - the EventFiring to invoke this listener
forEventTypes - the EventType to notify this listener of
Throws:
java.lang.IllegalStateException - if the listener is already registered

deregisterCacheEventListener

void deregisterCacheEventListener(CacheEventListener<? super K,? super V> listener)
Allows for deregistering of a previously registered CacheEventListener instance

Parameters:
listener - the listener to deregister
Throws:
java.lang.IllegalStateException - if the listener isn't already registered

updateResourcePools

void updateResourcePools(ResourcePools pools)
updates ResourcePools

Parameters:
pools - the ResourcePools that need to be updated