Package net.sf.ehcache.config
Interface CacheConfigurationListener
-
- All Known Implementing Classes:
AbstractCacheConfigurationListener,CacheSamplerImpl,MemoryStore
public interface CacheConfigurationListenerInstances of CacheConfigurationListener can be registered with CacheConfiguration instances in order to receive notification when any of the dynamic properties of the configuration are changed.- Author:
- Chris Dennis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidderegistered(CacheConfiguration config)Indicates that this listener was removed from the given configurationvoiddiskCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations disk store capacityvoidloggingChanged(boolean oldValue, boolean newValue)Indicates a change in the configuration for enable/disable loggingvoidmaxBytesLocalDiskChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalDisk settingvoidmaxBytesLocalHeapChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalHeap settingvoidmaxEntriesInCacheChanged(long oldValue, long newValue)Indicates a change in the configuration for maxEntriesInCache settingvoidmemoryCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations memory store capacityvoidregistered(CacheConfiguration config)Indicates that this listener was registered with the given configurationvoidtimeToIdleChanged(long oldTimeToIdle, long newTimeToIdle)Indicates a change in the configurations time to idlevoidtimeToLiveChanged(long oldTimeToLive, long newTimeToLive)Indicates a change in the configurations time to live
-
-
-
Method Detail
-
timeToIdleChanged
void timeToIdleChanged(long oldTimeToIdle, long newTimeToIdle)Indicates a change in the configurations time to idle- Parameters:
oldTimeToIdle- previous time to idle valuenewTimeToIdle- new time to idle value
-
timeToLiveChanged
void timeToLiveChanged(long oldTimeToLive, long newTimeToLive)Indicates a change in the configurations time to live- Parameters:
oldTimeToLive- previous time to live valuenewTimeToLive- new time to live value
-
diskCapacityChanged
void diskCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations disk store capacity- Parameters:
oldCapacity- previous capacitynewCapacity- new capacity
-
memoryCapacityChanged
void memoryCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations memory store capacity- Parameters:
oldCapacity- previous capacitynewCapacity- new capacity
-
loggingChanged
void loggingChanged(boolean oldValue, boolean newValue)Indicates a change in the configuration for enable/disable logging- Parameters:
oldValue- old value whether logging was enabled or notnewValue- new value whether logging was enabled or not
-
registered
void registered(CacheConfiguration config)
Indicates that this listener was registered with the given configuration- Parameters:
config-
-
deregistered
void deregistered(CacheConfiguration config)
Indicates that this listener was removed from the given configuration- Parameters:
config-
-
maxBytesLocalHeapChanged
void maxBytesLocalHeapChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalHeap setting- Parameters:
oldValue- old value in bytesnewValue- new value in bytes
-
maxBytesLocalDiskChanged
void maxBytesLocalDiskChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalDisk setting- Parameters:
oldValue- old value in bytesnewValue- new value in bytes
-
maxEntriesInCacheChanged
void maxEntriesInCacheChanged(long oldValue, long newValue)Indicates a change in the configuration for maxEntriesInCache setting- Parameters:
oldValue- old valuenewValue- new value
-
-