net.sf.ehcache.config
Interface CacheConfigurationListener

All Known Implementing Classes:
DiskPersistentStore, DiskStore, MemoryOnlyStore, MemoryStore, OverflowToDiskStore, SampledCache

public interface CacheConfigurationListener

Instances of CacheConfigurationListener can be registered with CacheConfiguration instances in order to receive notification when any of the dynamic properties of the configuration are changed.

 

Method Summary
 void deregistered(CacheConfiguration config)
          Indicates that this listener was removed from the given configuration
 void diskCapacityChanged(int oldCapacity, int newCapacity)
          Indicates a change in the configurations disk store capacity
 void loggingChanged(boolean oldValue, boolean newValue)
          Indicates a change in the configuration for enable/disable logging
 void memoryCapacityChanged(int oldCapacity, int newCapacity)
          Indicates a change in the configurations memory store capacity
 void registered(CacheConfiguration config)
          Indicates that this listener was registered with the given configuration
 void timeToIdleChanged(long oldTimeToIdle, long newTimeToIdle)
          Indicates a change in the configurations time to idle
 void timeToLiveChanged(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 value
newTimeToIdle - 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 value
newTimeToLive - new time to live value

diskCapacityChanged

void diskCapacityChanged(int oldCapacity,
                         int newCapacity)
Indicates a change in the configurations disk store capacity

Parameters:
oldCapacity - previous capacity
newCapacity - new capacity

memoryCapacityChanged

void memoryCapacityChanged(int oldCapacity,
                           int newCapacity)
Indicates a change in the configurations memory store capacity

Parameters:
oldCapacity - previous capacity
newCapacity - 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 not
newValue - 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 -