| Modifier and Type | Field and Description |
|---|---|
| private transient Ehcache | cache
An Ehcache backing instance |
| private ObjectName | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static ObjectName | createObjectName(String cacheManagerName, String cacheName)
Creates an object name using the scheme "net.sf.ehcache:type=Cache,CacheManager=<cachemanagername>,name=<cachename>" |
| public void | flush()
Implements net. |
| public CacheConfiguration | getCacheConfiguration()
Implements net. |
| public String | |
| pack-priv ObjectName | |
| public CacheStatistics | getStatistics()
Implements net. |
| public String | Returns: The status value as a String from the Status enum classImplements net. |
| pack-priv Store | |
| public boolean | hasAbortedSizeOf()
Implements net. |
| public boolean | isTerracottaClustered()
Implements net. |
| public void |
| cache | back to summary |
|---|---|
| private transient Ehcache cache An Ehcache backing instance | |
| objectName | back to summary |
|---|---|
| private ObjectName objectName | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| Cache | back to summary |
|---|---|
| public Cache(Ehcache cache) throws CacheException A constructor for JCache. JCache is an adaptor for an Ehcache, and therefore requires an Ehcace in its constructor.
The
A client can specify their own settings here and pass the Only the CacheManager can initialise them.
| |
| createObjectName | back to summary |
|---|---|
| pack-priv static ObjectName createObjectName(String cacheManagerName, String cacheName) Creates an object name using the scheme "net.sf.ehcache:type=Cache,CacheManager= | |
| flush | back to summary |
|---|---|
| public void flush() throws IllegalStateException, CacheException Implements net. Flushes all cache items from memory to the disk store, and from the DiskStore to disk.
| |
| getCacheConfiguration | back to summary |
|---|---|
| public CacheConfiguration getCacheConfiguration() Implements net. Gets the JMX read-only CacheConfiguration | |
| getName | back to summary |
|---|---|
| public String getName() Implements net. Gets the cache name. | |
| getObjectName | back to summary |
|---|---|
pack-priv ObjectName getObjectName()
| |
| getStatistics | back to summary |
|---|---|
| public CacheStatistics getStatistics() Implements net. Gets the JMX cache statistics | |
| getStatus | back to summary |
|---|---|
| public String getStatus() Implements net. Gets the status attribute of the Cache.
| |
| getStore | back to summary |
|---|---|
| pack-priv Store getStore() throws NotCompliantMBeanException Gets the JMX store bean | |
| hasAbortedSizeOf | back to summary |
|---|---|
| public boolean hasAbortedSizeOf() Implements net. May the cache contain elements which the SizeOf engine could not fully size? | |
| isTerracottaClustered | back to summary |
|---|---|
| public boolean isTerracottaClustered() Implements net. Is the cache configured with Terracotta clustering? | |
| removeAll | back to summary |
|---|---|
| public void removeAll() throws IllegalStateException, CacheException Implements net. Removes all cached items.
| |