Package net.sf.ehcache.config
Class AbstractCacheConfigurationListener
- java.lang.Object
-
- net.sf.ehcache.config.AbstractCacheConfigurationListener
-
- All Implemented Interfaces:
CacheConfigurationListener
public abstract class AbstractCacheConfigurationListener extends java.lang.Object implements CacheConfigurationListener
- Author:
- Alex Snaps
-
-
Constructor Summary
Constructors Constructor Description AbstractCacheConfigurationListener()
-
Method Summary
All Methods Instance Methods Concrete 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 oldCapacity, long newCapacity)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
public void timeToIdleChanged(long oldTimeToIdle, long newTimeToIdle)Indicates a change in the configurations time to idle- Specified by:
timeToIdleChangedin interfaceCacheConfigurationListener- Parameters:
oldTimeToIdle- previous time to idle valuenewTimeToIdle- new time to idle value
-
timeToLiveChanged
public void timeToLiveChanged(long oldTimeToLive, long newTimeToLive)Indicates a change in the configurations time to live- Specified by:
timeToLiveChangedin interfaceCacheConfigurationListener- Parameters:
oldTimeToLive- previous time to live valuenewTimeToLive- new time to live value
-
diskCapacityChanged
public void diskCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations disk store capacity- Specified by:
diskCapacityChangedin interfaceCacheConfigurationListener- Parameters:
oldCapacity- previous capacitynewCapacity- new capacity
-
memoryCapacityChanged
public void memoryCapacityChanged(int oldCapacity, int newCapacity)Indicates a change in the configurations memory store capacity- Specified by:
memoryCapacityChangedin interfaceCacheConfigurationListener- Parameters:
oldCapacity- previous capacitynewCapacity- new capacity
-
loggingChanged
public void loggingChanged(boolean oldValue, boolean newValue)Indicates a change in the configuration for enable/disable logging- Specified by:
loggingChangedin interfaceCacheConfigurationListener- Parameters:
oldValue- old value whether logging was enabled or notnewValue- new value whether logging was enabled or not
-
registered
public void registered(CacheConfiguration config)
Indicates that this listener was registered with the given configuration- Specified by:
registeredin interfaceCacheConfigurationListener
-
deregistered
public void deregistered(CacheConfiguration config)
Indicates that this listener was removed from the given configuration- Specified by:
deregisteredin interfaceCacheConfigurationListener
-
maxBytesLocalHeapChanged
public void maxBytesLocalHeapChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalHeap setting- Specified by:
maxBytesLocalHeapChangedin interfaceCacheConfigurationListener- Parameters:
oldValue- old value in bytesnewValue- new value in bytes
-
maxBytesLocalDiskChanged
public void maxBytesLocalDiskChanged(long oldValue, long newValue)Indicates a change in the configuration for maxBytesLocalDisk setting- Specified by:
maxBytesLocalDiskChangedin interfaceCacheConfigurationListener- Parameters:
oldValue- old value in bytesnewValue- new value in bytes
-
maxEntriesInCacheChanged
public void maxEntriesInCacheChanged(long oldCapacity, long newCapacity)Indicates a change in the configuration for maxEntriesInCache setting- Specified by:
maxEntriesInCacheChangedin interfaceCacheConfigurationListener- Parameters:
oldCapacity- old valuenewCapacity- new value
-
-