org.terracotta.modules.ehcache.store
Class CacheConfigChangeBridge
java.lang.Object
org.terracotta.modules.ehcache.store.CacheConfigChangeBridge
- All Implemented Interfaces:
- CacheConfigurationListener, org.terracotta.toolkit.events.ToolkitNotificationListener
public class CacheConfigChangeBridge
- extends Object
- implements CacheConfigurationListener, org.terracotta.toolkit.events.ToolkitNotificationListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheConfigChangeBridge
public CacheConfigChangeBridge(Ehcache cache,
String fullyQualifiedEhcacheName,
org.terracotta.toolkit.internal.cache.ToolkitCacheInternal backend,
org.terracotta.toolkit.events.ToolkitNotifier<CacheConfigChangeNotificationMsg> notifier)
connectConfigs
public void connectConfigs()
disconnectConfigs
public void disconnectConfigs()
timeToIdleChanged
public void timeToIdleChanged(long oldTimeToIdle,
long newTimeToIdle)
- Specified by:
timeToIdleChanged in interface CacheConfigurationListener
timeToLiveChanged
public void timeToLiveChanged(long oldTimeToLive,
long newTimeToLive)
- Specified by:
timeToLiveChanged in interface CacheConfigurationListener
diskCapacityChanged
public void diskCapacityChanged(int oldCapacity,
int newCapacity)
- Specified by:
diskCapacityChanged in interface CacheConfigurationListener
maxEntriesInCacheChanged
public void maxEntriesInCacheChanged(long oldCapacity,
long newCapacity)
- Specified by:
maxEntriesInCacheChanged in interface CacheConfigurationListener
memoryCapacityChanged
public void memoryCapacityChanged(int oldCapacity,
int newCapacity)
- Specified by:
memoryCapacityChanged in interface CacheConfigurationListener
maxBytesLocalHeapChanged
public void maxBytesLocalHeapChanged(long oldValue,
long newValue)
- Specified by:
maxBytesLocalHeapChanged in interface CacheConfigurationListener
maxBytesLocalDiskChanged
public void maxBytesLocalDiskChanged(long oldValue,
long newValue)
- Specified by:
maxBytesLocalDiskChanged in interface CacheConfigurationListener
loggingChanged
public void loggingChanged(boolean oldValue,
boolean newValue)
- Specified by:
loggingChanged in interface CacheConfigurationListener
registered
public void registered(CacheConfiguration config)
- Specified by:
registered in interface CacheConfigurationListener
deregistered
public void deregistered(CacheConfiguration config)
- Specified by:
deregistered in interface CacheConfigurationListener
onNotification
public void onNotification(org.terracotta.toolkit.events.ToolkitNotificationEvent event)
- Specified by:
onNotification in interface org.terracotta.toolkit.events.ToolkitNotificationListener
mapMaxEntriesInCacheToTotalCount
public static int mapMaxEntriesInCacheToTotalCount(int maxEntriesInCache)
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.