ehcache

net.sf.ehcache.config
Interface CacheConfigurationListener

All Known Implementing Classes:
AbstractCacheConfigurationListener, CacheSamplerImpl, MemoryStore

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.

Author:
Chris Dennis

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 maxBytesLocalDiskChanged(long oldValue, long newValue)
          Indicates a change in the configuration for maxBytesLocalDisk setting
 void maxBytesLocalHeapChanged(long oldValue, long newValue)
          Indicates a change in the configuration for maxBytesLocalHeap setting
 void maxEntriesInCacheChanged(long oldValue, long newValue)
          Indicates a change in the configuration for maxEntriesInCache setting
 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 -

maxBytesLocalHeapChanged

void maxBytesLocalHeapChanged(long oldValue,
                              long newValue)
Indicates a change in the configuration for maxBytesLocalHeap setting

Parameters:
oldValue - old value in bytes
newValue - 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 bytes
newValue - new value in bytes

maxEntriesInCacheChanged

void maxEntriesInCacheChanged(long oldValue,
                              long newValue)
Indicates a change in the configuration for maxEntriesInCache setting

Parameters:
oldValue - old value
newValue - new value

ehcache

Copyright 2001-2017, Terracotta, Inc.