public class CacheConfigChangeBridge extends Object implements CacheConfigurationListener, org.terracotta.toolkit.events.ToolkitNotificationListener
| Constructor and Description |
|---|
CacheConfigChangeBridge(String fullyQualifiedEhcacheName,
org.terracotta.toolkit.internal.cache.ToolkitCacheInternal backend,
org.terracotta.toolkit.events.ToolkitNotifier<CacheConfigChangeNotificationMsg> notifier,
CacheConfiguration cacheConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectConfigs() |
void |
deregistered(CacheConfiguration config) |
void |
disconnectConfigs() |
void |
diskCapacityChanged(int oldCapacity,
int newCapacity) |
void |
loggingChanged(boolean oldValue,
boolean newValue) |
static int |
mapMaxEntriesInCacheToTotalCount(int maxEntriesInCache) |
void |
maxBytesLocalDiskChanged(long oldValue,
long newValue) |
void |
maxBytesLocalHeapChanged(long oldValue,
long newValue) |
void |
maxEntriesInCacheChanged(long oldCapacity,
long newCapacity) |
void |
memoryCapacityChanged(int oldCapacity,
int newCapacity) |
void |
onNotification(org.terracotta.toolkit.events.ToolkitNotificationEvent event) |
void |
registered(CacheConfiguration config) |
void |
timeToIdleChanged(long oldTimeToIdle,
long newTimeToIdle) |
void |
timeToLiveChanged(long oldTimeToLive,
long newTimeToLive) |
public CacheConfigChangeBridge(String fullyQualifiedEhcacheName, org.terracotta.toolkit.internal.cache.ToolkitCacheInternal backend, org.terracotta.toolkit.events.ToolkitNotifier<CacheConfigChangeNotificationMsg> notifier, CacheConfiguration cacheConfiguration)
public void connectConfigs()
public void disconnectConfigs()
public void timeToIdleChanged(long oldTimeToIdle,
long newTimeToIdle)
timeToIdleChanged in interface CacheConfigurationListenerpublic void timeToLiveChanged(long oldTimeToLive,
long newTimeToLive)
timeToLiveChanged in interface CacheConfigurationListenerpublic void diskCapacityChanged(int oldCapacity,
int newCapacity)
diskCapacityChanged in interface CacheConfigurationListenerpublic void maxEntriesInCacheChanged(long oldCapacity,
long newCapacity)
maxEntriesInCacheChanged in interface CacheConfigurationListenerpublic void memoryCapacityChanged(int oldCapacity,
int newCapacity)
memoryCapacityChanged in interface CacheConfigurationListenerpublic void maxBytesLocalHeapChanged(long oldValue,
long newValue)
maxBytesLocalHeapChanged in interface CacheConfigurationListenerpublic void maxBytesLocalDiskChanged(long oldValue,
long newValue)
maxBytesLocalDiskChanged in interface CacheConfigurationListenerpublic void loggingChanged(boolean oldValue,
boolean newValue)
loggingChanged in interface CacheConfigurationListenerpublic void registered(CacheConfiguration config)
registered in interface CacheConfigurationListenerpublic void deregistered(CacheConfiguration config)
deregistered in interface CacheConfigurationListenerpublic void onNotification(org.terracotta.toolkit.events.ToolkitNotificationEvent event)
onNotification in interface org.terracotta.toolkit.events.ToolkitNotificationListenerpublic static int mapMaxEntriesInCacheToTotalCount(int maxEntriesInCache)
Copyright © 2003–2024 Terracotta, Inc.. All rights reserved.