ehcache
A B C D E F G H I L M N O P R S T U

A

AUTO_DISK_PATH_DIRECTORY_PREFIX - Static variable in class net.sf.ehcache.store.DiskStore
If the CacheManager needs to resolve a conflict with the disk path, it will create a subdirectory in the given disk path with this prefix followed by a number.
addCache(String) - Method in class net.sf.ehcache.CacheManager
Adds a Cache based on the defaultCache with the given name.
addCache(Cache) - Method in class net.sf.ehcache.CacheManager
Adds a Cache to the CacheManager.
addCache(CacheConfiguration) - Method in class net.sf.ehcache.config.Configuration
Allows BeanHandler to add Cache Configurations to the configuration.
addCacheEventListenerFactory(CacheConfiguration.CacheEventListenerFactoryConfiguration) - Method in class net.sf.ehcache.config.CacheConfiguration
Used by BeanUtils to add cacheEventListenerFactory elements to the cache configuration.
addCacheManagerEventListenerFactory(FactoryConfiguration) - Method in class net.sf.ehcache.config.Configuration
Allows BeanHandler to add the CacheManagerEventListener to the configuration.
addCacheManagerPeerListenerFactory(FactoryConfiguration) - Method in class net.sf.ehcache.config.Configuration
Adds a CachePeerProviderFactoryConfiguration.
addCacheManagerPeerProviderFactory(FactoryConfiguration) - Method in class net.sf.ehcache.config.Configuration
Adds a CachePeerProviderFactoryConfiguration.
addDefaultCache(CacheConfiguration) - Method in class net.sf.ehcache.config.Configuration
Allows BeanHandler to add a default configuration to the configuration.
addDiskStore(DiskStoreConfiguration) - Method in class net.sf.ehcache.config.Configuration
Allows BeanHandler to add disk store location to the configuration.
addToReplicationQueue(RMIAsynchronousCacheReplicator.CacheEventMessage) - Method in class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator
Adds a message to the queue.
alive() - Method in interface net.sf.ehcache.distribution.CacheReplicator
Checks that the replicator is is STATUS_ALIVE.
alive() - Method in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Checks that the replicator is is STATUS_ALIVE.

B

buildCache(String, Properties) - Method in class net.sf.ehcache.hibernate.EhCacheProvider
Builds a Cache.

C

Cache - class net.sf.ehcache.Cache.
Cache is the central class in ehcache.
Cache(String, int, boolean, boolean, long, long) - Constructor for class net.sf.ehcache.Cache
1.0 Constructor.
Cache(String, int, boolean, boolean, long, long, boolean, long) - Constructor for class net.sf.ehcache.Cache
1.1 Constructor.
Cache(String, int, MemoryStoreEvictionPolicy, boolean, String, boolean, long, long, boolean, long, RegisteredEventListeners) - Constructor for class net.sf.ehcache.Cache
1.2 Constructor

The ConfigurationFactory and clients can create these.

CacheConfiguration - class net.sf.ehcache.config.CacheConfiguration.
A class to represent Cache configuration.
CacheConfiguration() - Constructor for class net.sf.ehcache.config.CacheConfiguration
 
CacheConfiguration.CacheEventListenerFactoryConfiguration - class net.sf.ehcache.config.CacheConfiguration.CacheEventListenerFactoryConfiguration.
Configuration for the CachePeerListenerFactoryConfiguration.
CacheConfiguration.CacheEventListenerFactoryConfiguration() - Constructor for class net.sf.ehcache.config.CacheConfiguration.CacheEventListenerFactoryConfiguration
 
CacheEventListener - interface net.sf.ehcache.event.CacheEventListener.
Allows implementers to register callback methods that will be executed when a cache event occurs.
CacheEventListenerFactory - class net.sf.ehcache.event.CacheEventListenerFactory.
An abstract factory for creating listeners.
CacheEventListenerFactory() - Constructor for class net.sf.ehcache.event.CacheEventListenerFactory
 
CacheException - exception net.sf.ehcache.CacheException.
A runtime Cache Exception, compatible with JDK1.3.
CacheException() - Constructor for class net.sf.ehcache.CacheException
Constructor for the CacheException object.
CacheException(String) - Constructor for class net.sf.ehcache.CacheException
Constructor for the CacheException object.
CacheException(String, Throwable) - Constructor for class net.sf.ehcache.CacheException
Constructor for the CacheException object.
CacheManager - class net.sf.ehcache.CacheManager.
A container for Caches that maintain all aspects of their lifecycle.
CacheManager(Configuration) - Constructor for class net.sf.ehcache.CacheManager
An constructor for CacheManager, which takes a configuration object, rather than one created by parsing an ehcache.xml file.
CacheManager(String) - Constructor for class net.sf.ehcache.CacheManager
An ordinary constructor for CacheManager.
CacheManager(URL) - Constructor for class net.sf.ehcache.CacheManager
An ordinary constructor for CacheManager.
CacheManager(InputStream) - Constructor for class net.sf.ehcache.CacheManager
An ordinary constructor for CacheManager.
CacheManager() - Constructor for class net.sf.ehcache.CacheManager
Constructor.
CacheManagerEventListener - interface net.sf.ehcache.event.CacheManagerEventListener.
Allows implementers to register callback methods that will be executed when a CacheManager event occurs.
CacheManagerEventListenerFactory - class net.sf.ehcache.event.CacheManagerEventListenerFactory.
An abstract factory for creating cache manager listeners.
CacheManagerEventListenerFactory() - Constructor for class net.sf.ehcache.event.CacheManagerEventListenerFactory
 
CacheManagerPeerListener - interface net.sf.ehcache.distribution.CacheManagerPeerListener.
A listener for updates, which controls remote cache peers.
CacheManagerPeerListenerFactory - class net.sf.ehcache.distribution.CacheManagerPeerListenerFactory.
An abstract factory for creating cache manager peer listeners.
CacheManagerPeerListenerFactory() - Constructor for class net.sf.ehcache.distribution.CacheManagerPeerListenerFactory
 
CacheManagerPeerProvider - interface net.sf.ehcache.distribution.CacheManagerPeerProvider.
Provides a discovery service to locate CachePeer RMI listener peers for a Cache.
CacheManagerPeerProviderFactory - class net.sf.ehcache.distribution.CacheManagerPeerProviderFactory.
An abstract factory for creating peers.
CacheManagerPeerProviderFactory() - Constructor for class net.sf.ehcache.distribution.CacheManagerPeerProviderFactory
 
CachePeer - interface net.sf.ehcache.distribution.CachePeer.
An interface for a cache peer to which updates are made remotely.
CacheReplicator - interface net.sf.ehcache.distribution.CacheReplicator.
Replicates cache entries to peers of the CacheManager
ClassLoaderUtil - class net.sf.ehcache.util.ClassLoaderUtil.
Keeps all classloading in ehcache consistent.
ConfigurableRMIClientSocketFactory - class net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory.
Default socket timeouts are unlikely to be suitable for cache replication.
ConfigurableRMIClientSocketFactory(Integer) - Constructor for class net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory
Construct a new socket factory with the given timeout.
Configuration - class net.sf.ehcache.config.Configuration.
A bean, used by BeanUtils, to set configuration from an XML configuration file.
Configuration() - Constructor for class net.sf.ehcache.config.Configuration
Empty constructor, which is used by ConfigurationFactory, and can be also sued programmatically.
ConfigurationFactory - class net.sf.ehcache.config.ConfigurationFactory.
A utility class which configures beans from XML, using reflection.
ConfigurationHelper - class net.sf.ehcache.config.ConfigurationHelper.
The configuration for ehcache.
ConfigurationHelper(CacheManager, Configuration) - Constructor for class net.sf.ehcache.config.ConfigurationHelper
Only Constructor
cache - Variable in class net.sf.ehcache.store.MemoryStore
The cache this store is associated with.
cacheEventListenerConfigurations - Variable in class net.sf.ehcache.config.CacheConfiguration
The event listener factories added by BeanUtils.
cacheExists(String) - Method in class net.sf.ehcache.CacheManager
Checks whether a cache exists.
calculateDataFileSparseness() - Method in class net.sf.ehcache.store.DiskStore
The design of the layout on the data file means that there will be small gaps created when DiskElements are reused.
calculateInMemorySize() - Method in class net.sf.ehcache.Cache
Gets the size of the memory store for this cache

Warning: This method can be very expensive to run.

clear() - Method in class net.sf.ehcache.hibernate.EhCache
Remove all elements in the cache, but leave the cache in a useable state.
clear() - Method in class net.sf.ehcache.store.MemoryStore
Clears any data structures and places it back to its state when it was first created.
clone() - Method in class net.sf.ehcache.Cache
Clones a cache.
clone() - Method in class net.sf.ehcache.Element
Clones an Element.
containsKey(Object) - Method in class net.sf.ehcache.store.DiskStore
An unsynchronized and very low cost check to see if a key is in the Store.
containsKey(Object) - Method in class net.sf.ehcache.store.MemoryStore
An unsynchronized check to see if a key is in the Store.
containsKey(Object) - Method in interface net.sf.ehcache.store.Store
A check to see if a key is in the Store.
convertIntToStatus(int) - Static method in class net.sf.ehcache.Status
 
create() - Static method in class net.sf.ehcache.CacheManager
A factory method to create a singleton CacheManager with default config, or return it if it exists.
create(String) - Static method in class net.sf.ehcache.CacheManager
A factory method to create a singleton CacheManager with a specified configuration.
create(URL) - Static method in class net.sf.ehcache.CacheManager
A factory method to create a singleton CacheManager from an URL.
create(InputStream) - Static method in class net.sf.ehcache.CacheManager
A factory method to create a singleton CacheManager from a java.io.InputStream.
create(Cache, DiskStore) - Static method in class net.sf.ehcache.store.MemoryStore
A factory method to create a MemoryStore.
createCacheEventListener(Properties) - Method in class net.sf.ehcache.distribution.RMICacheReplicatorFactory
Create a CacheEventListener which is also a CacheReplicator.
createCacheEventListener(Properties) - Method in class net.sf.ehcache.event.CacheEventListenerFactory
Create a CacheEventListener
createCacheManagerEventListener() - Method in class net.sf.ehcache.config.ConfigurationHelper
Tries to load the class specified.
createCacheManagerEventListener(Properties) - Method in class net.sf.ehcache.event.CacheManagerEventListenerFactory
Create a CacheEventListener
createCachePeerListener() - Method in class net.sf.ehcache.config.ConfigurationHelper
Tries to load the class specified otherwise defaults to null
createCachePeerListener(CacheManager, Properties) - Method in class net.sf.ehcache.distribution.CacheManagerPeerListenerFactory
Creates a peer provider.
createCachePeerListener(CacheManager, Properties) - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory
 
createCachePeerProvider() - Method in class net.sf.ehcache.config.ConfigurationHelper
Tries to load the class specified otherwise defaults to null
createCachePeerProvider(CacheManager, Properties) - Method in class net.sf.ehcache.distribution.CacheManagerPeerProviderFactory
Create a peer provider.
createCachePeerProvider(CacheManager, Properties) - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory
 
createCaches() - Method in class net.sf.ehcache.config.ConfigurationHelper
Creates unitialised caches for each cache configuration found
createDefaultCache() - Method in class net.sf.ehcache.config.ConfigurationHelper
 
createNewInstance(String) - Static method in class net.sf.ehcache.util.ClassLoaderUtil
Creates a new class instance.
createSocket(String, int) - Method in class net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory
Create a client socket connected to the specified host and port.

D

DEFAULT_CACHE_NAME - Static variable in class net.sf.ehcache.Cache
A reserved word for cache names.
DEFAULT_EXPIRY_THREAD_INTERVAL_SECONDS - Static variable in class net.sf.ehcache.Cache
The default interval between runs of the expiry thread.
DEFAULT_SOCKET_TIMEOUT_MILLIS - Static variable in class net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory
The default timeout for cache replication for a single replication action.
DiskStore - class net.sf.ehcache.store.DiskStore.
A disk store implementation.
DiskStore(Cache, String) - Constructor for class net.sf.ehcache.store.DiskStore
Creates a disk store.
DiskStoreConfiguration - class net.sf.ehcache.config.DiskStoreConfiguration.
A class to represent DiskStore configuration e.g.
DiskStoreConfiguration() - Constructor for class net.sf.ehcache.config.DiskStoreConfiguration
 
destroy() - Method in class net.sf.ehcache.hibernate.EhCache
Remove the cache and make it unuseable.
diskExpiryThreadIntervalSeconds - Variable in class net.sf.ehcache.config.CacheConfiguration
The interval in seconds between runs of the disk expiry thread.
diskPersistent - Variable in class net.sf.ehcache.config.CacheConfiguration
For caches that overflow to disk, whether the disk cache persists between CacheManager instances.
diskStore - Variable in class net.sf.ehcache.store.MemoryStore
The DiskStore associated with this MemoryStore.
dispose() - Method in interface net.sf.ehcache.distribution.CacheManagerPeerListener
Stop the listener and free any resources.
dispose() - Method in interface net.sf.ehcache.distribution.CacheManagerPeerProvider
Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.
dispose() - Method in class net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver
Shutdown the heartbeat.
dispose() - Method in class net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender
Shutdown this heartbeat sender
dispose() - Method in class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider
Shutdown the heartbeat
dispose() - Method in class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator
Give the replicator a chance to cleanup and free resources when no longer needed
dispose() - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerListener
Stop the listener.
dispose() - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
Providers may be doing all sorts of exotic things and need to be able to clean up on dispose.
dispose() - Method in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Give the replicator a chance to cleanup and free resources when no longer needed
dispose() - Method in interface net.sf.ehcache.event.CacheEventListener
Give the replicator a chance to cleanup and free resources when no longer needed
dispose() - Method in class net.sf.ehcache.event.RegisteredEventListeners
Tell listeners to dispose themselves.
dispose() - Method in class net.sf.ehcache.store.DiskStore
Shuts down the disk store in preparation for cache shutdown

If a VM crash happens, the shutdown hook will not run.

dispose() - Method in class net.sf.ehcache.store.MemoryStore
Prepares for shutdown.
dispose() - Method in interface net.sf.ehcache.store.Store
Prepares for shutdown.
doPut(Element) - Method in class net.sf.ehcache.store.FifoMemoryStore
Allow specialised actions over adding the element to the map
doPut(Element) - Method in class net.sf.ehcache.store.LfuMemoryStore
Puts an element into the cache.
doPut(Element) - Method in class net.sf.ehcache.store.MemoryStore
Allow specialised actions over adding the element to the map.

E

EhCache - class net.sf.ehcache.hibernate.EhCache.
EHCache plugin for Hibernate.
EhCache(Cache) - Constructor for class net.sf.ehcache.hibernate.EhCache
Creates a new Hibernate pluggable cache by name.
EhCacheProvider - class net.sf.ehcache.hibernate.EhCacheProvider.
Cache Provider plugin for Hibernate 3.2 and ehcache-1.2.
EhCacheProvider() - Constructor for class net.sf.ehcache.hibernate.EhCacheProvider
 
Element - class net.sf.ehcache.Element.
A Cache Element, consisting of a key, value and attributes.
Element(Serializable, Serializable, long) - Constructor for class net.sf.ehcache.Element
A full constructor.
Element(Object, Object, long) - Constructor for class net.sf.ehcache.Element
A full constructor.
Element(Serializable, Serializable) - Constructor for class net.sf.ehcache.Element
Constructor.
Element(Object, Object) - Constructor for class net.sf.ehcache.Element
Constructor.
EventMessage - class net.sf.ehcache.distribution.EventMessage.
An Event Message, in respect of a particular cache.
EventMessage(int, Serializable, Element) - Constructor for class net.sf.ehcache.distribution.EventMessage
Full constructor.
equals(Object) - Method in class net.sf.ehcache.Element
Equals comparison with another element, based on the key.
equals(Object) - Method in class net.sf.ehcache.Status
Indicates whether some other object is "equal to" this one.
equals(Status) - Method in class net.sf.ehcache.Status
Equality checker when the comparison object is of the same type.
equals(Object) - Method in class net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory
The standard hashCode method which is necessary for SocketFactory classes.
eternal - Variable in class net.sf.ehcache.config.CacheConfiguration
Sets whether elements are eternal.
evict(Element) - Method in class net.sf.ehcache.store.MemoryStore
Evict the Element.
extractAndLogProperty(String, Properties) - Static method in class net.sf.ehcache.util.PropertyUtil
 

F

FIFO - Static variable in class net.sf.ehcache.store.MemoryStoreEvictionPolicy
FIFO - first in first out, the oldest element by creation time.
FactoryConfiguration - class net.sf.ehcache.config.FactoryConfiguration.
A class to represent the CacheManagerEventListener configuration.
FactoryConfiguration() - Constructor for class net.sf.ehcache.config.FactoryConfiguration
 
FifoMemoryStore - class net.sf.ehcache.store.FifoMemoryStore.
First-In-First-Out (FIFO) implementation of MemoryStore.
FifoMemoryStore(Cache, DiskStore) - Constructor for class net.sf.ehcache.store.FifoMemoryStore
Constructor for the FifoMemoryStore object.
flush() - Method in class net.sf.ehcache.Cache
Flushes all cache items from memory to the disk store, and from the DiskStore to disk.
flush() - Method in class net.sf.ehcache.store.DiskStore
Flush the spool if persistent, so we don't lose any data.
flush() - Method in class net.sf.ehcache.store.MemoryStore
Flush to disk.
fromString(String) - Static method in class net.sf.ehcache.store.MemoryStoreEvictionPolicy
Converts a string representation of the policy into a policy.
fullyQualifiedClassPath - Variable in class net.sf.ehcache.config.FactoryConfiguration
class name.

G

get(Serializable) - Method in class net.sf.ehcache.Cache
Gets an element from the cache.
get(Object) - Method in class net.sf.ehcache.Cache
Gets an element from the cache.
get(Object) - Method in class net.sf.ehcache.hibernate.EhCache
Gets a value of an element which matches the given key.
get(Object) - Method in class net.sf.ehcache.store.DiskStore
Gets an Element from the Disk Store.
get(Object) - Method in class net.sf.ehcache.store.MemoryStore
Gets an item from the cache.
get(Object) - Method in interface net.sf.ehcache.store.Store
Gets an item from the cache.
getBoundCachePeers() - Method in interface net.sf.ehcache.distribution.CacheManagerPeerListener
All of the caches which are listenting for remote changes.
getBoundCachePeers() - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerListener
All of the caches which are listenting for remote changes.
getCache(String) - Method in class net.sf.ehcache.CacheManager
Gets a Cache
getCacheConfigurations() - Method in class net.sf.ehcache.config.Configuration
Gets a Map of cache configurations, keyed by name.
getCacheConfigurationsKeySet() - Method in class net.sf.ehcache.config.Configuration
Gets a Map of cacheConfigurations.
getCacheEventListeners() - Method in class net.sf.ehcache.event.RegisteredEventListeners
Gets a list of the listeners registered to this class
getCacheEventNotificationService() - Method in class net.sf.ehcache.Cache
Use this to access the service in order to register and unregister listeners
getCacheManager() - Method in class net.sf.ehcache.Cache
Gets the CacheManager managing this cache.
getCacheManager() - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
The cacheManager this provider is bound to
getCacheManagerEventListener() - Method in class net.sf.ehcache.CacheManager
Gets the CacheManager event listener.
getCacheManagerEventListenerFactoryConfiguration() - Method in class net.sf.ehcache.config.Configuration
Gets the CacheManagerEventListener factory configuration.
getCacheManagerPeerListenerFactoryConfiguration() - Method in class net.sf.ehcache.config.Configuration
Gets the CacheManagerPeerListener factory configuration.
getCacheManagerPeerProviderFactoryConfiguration() - Method in class net.sf.ehcache.config.Configuration
Gets the CacheManagerPeerProvider factory configuration.
getCacheNames() - Method in class net.sf.ehcache.CacheManager
Returns a list of the current cache names.
getCachePeer() - Method in class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.CachePeerEntry
 
getCachePeerListener() - Method in class net.sf.ehcache.CacheManager
When CacheManage is configured as part of a cluster, a CacheManagerPeerListener will be registered in it.
getCachePeerProvider() - Method in class net.sf.ehcache.CacheManager
Gets the CacheManagerPeerProvider For distributed caches, the peer provider finds other cache managers and their caches in the same cluster
getConfigurationBean() - Method in class net.sf.ehcache.config.ConfigurationHelper
 
getConfigurationSource() - Method in class net.sf.ehcache.config.Configuration
Gets a description of the source from which this configuration was created.
getCreationTime() - Method in class net.sf.ehcache.Element
Gets the creationTime attribute of the ElementAttributes object.
getDataFileName() - Method in class net.sf.ehcache.store.DiskStore
 
getDataFilePath() - Method in class net.sf.ehcache.store.DiskStore
 
getDataFileSize() - Method in class net.sf.ehcache.store.DiskStore
 
getDate() - Method in class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.CachePeerEntry
 
getDefaultCacheConfiguration() - Method in class net.sf.ehcache.config.Configuration
 
getDiskExpiryThreadIntervalSeconds() - Method in class net.sf.ehcache.Cache
 
getDiskStoreConfiguration() - Method in class net.sf.ehcache.config.Configuration
Gets the disk store configuration.
getDiskStoreHitCount() - Method in class net.sf.ehcache.Cache
Number of times a requested item was found in the Disk Store.
getDiskStorePath() - Method in class net.sf.ehcache.config.ConfigurationHelper
 
getDiskStoreSize() - Method in class net.sf.ehcache.Cache
Returns the number of elements in the disk store.
getElement() - Method in class net.sf.ehcache.distribution.EventMessage
 
getElementCountInMemory() - Method in class net.sf.ehcache.hibernate.EhCache
 
getElementCountOnDisk() - Method in class net.sf.ehcache.hibernate.EhCache
 
getEvent() - Method in class net.sf.ehcache.distribution.EventMessage
Gets the event.
getFullyQualifiedClassPath() - Method in class net.sf.ehcache.config.FactoryConfiguration
Getter.
getGuid() - Method in class net.sf.ehcache.Cache
The GUID for this cache instance can be used to determine whether two cache instance references are pointing to the same cache.
getGuid() - Method in interface net.sf.ehcache.distribution.CachePeer
Gets the globally unique id for the underlying Cache instance.
getGuid() - Method in class net.sf.ehcache.distribution.RMICachePeer
Gets the globally unique id for the underlying Cache instance.
getHitCount() - Method in class net.sf.ehcache.Cache
The number of times a requested item was found in the cache.
getHitCount() - Method in class net.sf.ehcache.Element
Gets the hit count on this element.
getIndexFileName() - Method in class net.sf.ehcache.store.DiskStore
 
getIndexFileSize() - Method in class net.sf.ehcache.store.DiskStore
 
getInitialCause() - Method in class net.sf.ehcache.CacheException
The intiial cause of this Exception.
getInstance() - Static method in class net.sf.ehcache.CacheManager
A factory method to create a singleton CacheManager with default config, or return it if it exists.
getKey() - Method in class net.sf.ehcache.Element
Gets the key attribute of the Element object.
getKeyArray() - Method in class net.sf.ehcache.store.DiskStore
Gets an Array of the keys for all elements in the disk store.
getKeyArray() - Method in class net.sf.ehcache.store.MemoryStore
Gets an Array of the keys for all elements in the memory cache.
getKeys() - Method in class net.sf.ehcache.Cache
Returns a list of all elements in the cache, whether or not they are expired.
getKeysNoDuplicateCheck() - Method in class net.sf.ehcache.Cache
Returns a list of all elements in the cache, whether or not they are expired.
getKeysWithExpiryCheck() - Method in class net.sf.ehcache.Cache
Returns a list of all elements in the cache.
getLastAccessTime() - Method in class net.sf.ehcache.Element
Gets the last access time.
getMaxElementsInMemory() - Method in class net.sf.ehcache.Cache
Gets the maximum number of elements to hold in memory.
getMemoryStoreEvictionPolicy() - Method in class net.sf.ehcache.Cache
The policy used to evict elements from the MemoryStore.
getMemoryStoreHitCount() - Method in class net.sf.ehcache.Cache
Number of times a requested item was found in the Memory Store.
getMemoryStoreSize() - Method in class net.sf.ehcache.Cache
Returns the number of elements in the memory store.
getMissCountExpired() - Method in class net.sf.ehcache.Cache
Number of times a requested element was found but was expired.
getMissCountNotFound() - Method in class net.sf.ehcache.Cache
Number of times a requested element was not found in the cache.
getName() - Method in class net.sf.ehcache.Cache
Gets the cache name.
getName() - Method in interface net.sf.ehcache.distribution.CachePeer
Gets the cache name.
getName() - Method in class net.sf.ehcache.distribution.RMICachePeer
Gets the cache name
getObjectKey() - Method in class net.sf.ehcache.Element
Gets the key attribute of the Element object.
getObjectValue() - Method in class net.sf.ehcache.Element
Gets the value attribute of the Element object as an Object.
getPath() - Method in class net.sf.ehcache.config.DiskStoreConfiguration
The diskStore path
getProperties() - Method in class net.sf.ehcache.config.FactoryConfiguration
Getter.
getQuiet(Serializable) - Method in class net.sf.ehcache.Cache
Gets an element from the cache, without updating Element statistics.
getQuiet(Object) - Method in class net.sf.ehcache.Cache
Gets an element from the cache, without updating Element statistics.
getQuiet(Object) - Method in class net.sf.ehcache.store.DiskStore
Gets an Element from the Disk Store, without updating statistics
getQuiet(Object) - Method in class net.sf.ehcache.store.MemoryStore
Gets an item from the cache, without updating Element statistics.
getRegionName() - Method in class net.sf.ehcache.hibernate.EhCache
 
getSerializableKey() - Method in class net.sf.ehcache.distribution.EventMessage
 
getSerializedSize() - Method in class net.sf.ehcache.Element
The size of this object in serialized form.
getSize() - Method in class net.sf.ehcache.Cache
Gets the size of the cache.
getSize() - Method in class net.sf.ehcache.store.DiskStore
Returns the current store size.
getSize() - Method in class net.sf.ehcache.store.MemoryStore
Returns the current cache size.
getSize() - Method in interface net.sf.ehcache.store.Store
Returns the current store size.
getSizeInBytes() - Method in class net.sf.ehcache.store.MemoryStore
Measures the size of the memory store by measuring the serialized size of all elements.
getSizeInMemory() - Method in class net.sf.ehcache.hibernate.EhCache
Warning: This method can be very expensive to run.
getStandardClassLoader() - Static method in class net.sf.ehcache.util.ClassLoaderUtil
Gets the ClassLoader that all classes in ehcache, and extensions, should use for classloading.
getStatus() - Method in class net.sf.ehcache.Cache
Gets the status attribute of the Cache.
getStatus() - Method in class net.sf.ehcache.CacheManager
Gets the status attribute of the Cache
getStatus() - Method in class net.sf.ehcache.store.DiskStore
Returns the store status.
getStatus() - Method in class net.sf.ehcache.store.MemoryStore
Gets the status of the MemoryStore.
getStatus() - Method in interface net.sf.ehcache.store.Store
Returns the cache status.
getTimeToIdleSeconds() - Method in class net.sf.ehcache.Cache
Gets timeToIdleSeconds.
getTimeToLiveSeconds() - Method in class net.sf.ehcache.Cache
Gets timeToLiveSeconds.
getTimeout() - Method in class net.sf.ehcache.hibernate.EhCache
Returns the lock timeout for this cache, which is 60s
getTotalFileSize() - Method in class net.sf.ehcache.store.DiskStore
 
getUrl() - Method in interface net.sf.ehcache.distribution.CachePeer
The URL for the remote replicator to connect.
getUrl() - Method in class net.sf.ehcache.distribution.RMICachePeer
The URL for the remote replicator to connect. The value will only have meaning for a specific implementation of replicator and remote peer.

This method is not meant to be used remotely. The replicator already needs to know this. It has to throw RemoteException to comply with RMI requirements

This implementation gives an URL which has meaning to the RMI remoting system.

getUrlBase() - Method in interface net.sf.ehcache.distribution.CachePeer
The URL base for the remote replicator to connect.
getUrlBase() - Method in class net.sf.ehcache.distribution.RMICachePeer
The URL base for the remote replicator to connect. The value will have meaning only to a specific implementation of replicator and remote peer.

This implementation gives an URL which has meaning to the RMI remoting system.

getUsedDataSize() - Method in class net.sf.ehcache.store.DiskStore
When elements are deleted, spaces are left in the file.
getValue() - Method in class net.sf.ehcache.Element
Gets the value attribute of the Element object.
getVersion() - Method in class net.sf.ehcache.Element
Gets the version attribute of the ElementAttributes object.

H

hashCode() - Method in class net.sf.ehcache.Element
Gets the hascode, based on the key.
hashCode() - Method in class net.sf.ehcache.Status
Returns a hash code value for the object.
hashCode() - Method in class net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory
Implements the Object hashCode method.

I

init() - Method in interface net.sf.ehcache.distribution.CacheManagerPeerListener
Call to start the listeners and do any other network initialisation.
init() - Method in interface net.sf.ehcache.distribution.CacheManagerPeerProvider
Notifies providers to initialise themselves.
init() - Method in class net.sf.ehcache.distribution.ManualRMICacheManagerPeerProvider
Notifies providers to initialise themselves.
init() - Method in class net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender
Start the heartbeat thread
init() - Method in class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider
Notifies providers to initialise themselves.
init() - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerListener
Call to start the listeners and do any other network initialisation.
init() - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
Notifies providers to initialise themselves.
intValue() - Method in class net.sf.ehcache.Status
Returns the int value of status, for backward compatibility with ehcache versions below 1.2
isDiskPersistent() - Method in class net.sf.ehcache.Cache
 
isElementInMemory(Serializable) - Method in class net.sf.ehcache.Cache
Whether an Element is stored in the cache in Memory, indicating a very low cost of retrieval.
isElementInMemory(Object) - Method in class net.sf.ehcache.Cache
Whether an Element is stored in the cache in Memory, indicating a very low cost of retrieval.
isElementOnDisk(Serializable) - Method in class net.sf.ehcache.Cache
Whether an Element is stored in the cache on Disk, indicating a higher cost of retrieval.
isElementOnDisk(Object) - Method in class net.sf.ehcache.Cache
Whether an Element is stored in the cache on Disk, indicating a higher cost of retrieval.
isEternal() - Method in class net.sf.ehcache.Cache
Are elements eternal.
isExpired(Element) - Method in class net.sf.ehcache.Cache
Checks whether this cache element has expired.
isExpiryThreadAlive() - Method in class net.sf.ehcache.store.DiskStore
The expiry thread is started provided the cache is not eternal

If started it will continue to run until the DiskStore.dispose() method is called, at which time it should be interrupted and then die.

isFull() - Method in class net.sf.ehcache.store.MemoryStore
An algorithm to tell if the MemoryStore is at or beyond its carrying capacity.
isKeySerializable() - Method in class net.sf.ehcache.Element
Whether the element's key may be Serialized.
isMinimalPutsEnabledByDefault() - Method in class net.sf.ehcache.hibernate.EhCacheProvider
Not sure what this is supposed to do.
isOverflowToDisk() - Method in class net.sf.ehcache.Cache
Does the overflow go to disk.
isReplicateUpdatesViaCopy() - Method in interface net.sf.ehcache.distribution.CacheReplicator
Returns whether update is through copy or invalidate
isReplicateUpdatesViaCopy() - Method in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
 
isSerializable() - Method in class net.sf.ehcache.Element
Whether the element may be Serialized.
isSpoolEmpty() - Method in class net.sf.ehcache.store.DiskStore
Whether there are any elements waiting to be spooled to disk.

L

LFU - Static variable in class net.sf.ehcache.store.MemoryStoreEvictionPolicy
LFU - least frequently used.
LRU - Static variable in class net.sf.ehcache.store.MemoryStoreEvictionPolicy
LRU - least recently used.
LfuMemoryStore - class net.sf.ehcache.store.LfuMemoryStore.
Less Frequently Used (LFU) implementation of the memory store.
LfuMemoryStore(Cache, DiskStore) - Constructor for class net.sf.ehcache.store.LfuMemoryStore
Constructor for the LfuMemoryStore object.
LruMemoryStore - class net.sf.ehcache.store.LruMemoryStore.
An implementation of a LruMemoryStore.
LruMemoryStore(Cache, DiskStore) - Constructor for class net.sf.ehcache.store.LruMemoryStore
Constructor for the LruMemoryStore object The backing LinkedHashMap is created with LRU by access order.
LruMemoryStore.SpoolingLRUMap - class net.sf.ehcache.store.LruMemoryStore.SpoolingLRUMap.
An LRU Map implementation based on Apache Commons LRUMap.
LruMemoryStore.SpoolingLRUMap() - Constructor for class net.sf.ehcache.store.LruMemoryStore.SpoolingLRUMap
Constructor.
LruMemoryStore.SpoolingLinkedHashMap - class net.sf.ehcache.store.LruMemoryStore.SpoolingLinkedHashMap.
An extension of LinkedHashMap which overrides LruMemoryStore.SpoolingLinkedHashMap.removeEldestEntry(java.util.Map.Entry) to persist cache entries to the auxiliary cache before they are removed.
LruMemoryStore.SpoolingLinkedHashMap() - Constructor for class net.sf.ehcache.store.LruMemoryStore.SpoolingLinkedHashMap
Default constructor.
listRemoteCachePeers(Cache) - Method in interface net.sf.ehcache.distribution.CacheManagerPeerProvider
 
listRemoteCachePeers(Cache) - Method in class net.sf.ehcache.distribution.ManualRMICacheManagerPeerProvider
 
listRemoteCachePeers(Cache) - Method in class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider
 
listRemoteCachePeers(Cache) - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
 
lock(Object) - Method in class net.sf.ehcache.hibernate.EhCache
Calls to this method should perform their own synchronization.
lookupRemoteCachePeer(String) - Static method in class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
The use of one-time registry creation and Naming.rebind should mean we can create as many listeneres as we like.

M

ManualRMICacheManagerPeerProvider - class net.sf.ehcache.distribution.ManualRMICacheManagerPeerProvider.
A provider of Peer RMI addresses based off manual configuration.
ManualRMICacheManagerPeerProvider() - Constructor for class net.sf.ehcache.distribution.ManualRMICacheManagerPeerProvider
Empty constructor.
MemoryStore - class net.sf.ehcache.store.MemoryStore.
An abstract class for the Memory Stores.
MemoryStore(Cache, DiskStore) - Constructor for class net.sf.ehcache.store.MemoryStore
Constructs things that all MemoryStores have in common.
MemoryStoreEvictionPolicy - class net.sf.ehcache.store.MemoryStoreEvictionPolicy.
A typesafe enumeration of eviction policies.
MulticastKeepaliveHeartbeatReceiver - class net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver.
Receives heartbeats from any MulticastKeepaliveHeartbeatSenders out there.
MulticastKeepaliveHeartbeatReceiver(MulticastRMICacheManagerPeerProvider, InetAddress, Integer) - Constructor for class net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatReceiver
Constructor.
MulticastKeepaliveHeartbeatSender - class net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender.
Sends heartbeats to a multicast group containing a compressed list of URLs.
MulticastKeepaliveHeartbeatSender(CacheManager, InetAddress, Integer) - Constructor for class net.sf.ehcache.distribution.MulticastKeepaliveHeartbeatSender
Constructor
MulticastRMICacheManagerPeerProvider - class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.
A peer provider which discovers peers using Multicast.
MulticastRMICacheManagerPeerProvider(CacheManager, InetAddress, Integer) - Constructor for class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider
Creates and starts a multicast peer provider
MulticastRMICacheManagerPeerProvider.CachePeerEntry - class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.CachePeerEntry.
Entry containing a looked up CachePeer and date
MulticastRMICacheManagerPeerProvider.CachePeerEntry(CachePeer, Date) - Constructor for class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider.CachePeerEntry
Constructor
map - Variable in class net.sf.ehcache.store.MemoryStore
Map where items are stored by key.
maxElementsInMemory - Variable in class net.sf.ehcache.config.CacheConfiguration
the maximum objects to be held in the MemoryStore.
memoryStoreEvictionPolicy - Variable in class net.sf.ehcache.config.CacheConfiguration
The policy used to evict elements from the MemoryStore.

N

NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME - Static variable in class net.sf.ehcache.hibernate.EhCacheProvider
The Hibernate system property specifying the location of the ehcache configuration file name.
NET_SF_EHCACHE_DISABLED - Static variable in class net.sf.ehcache.Cache
System Property based method of disabling ehcache.
name - Variable in class net.sf.ehcache.config.CacheConfiguration
the name of the cache.
net.sf.ehcache - package net.sf.ehcache
This package contains the public API for using ehcache.
net.sf.ehcache.config - package net.sf.ehcache.config
This package contains the cache configuration code.
net.sf.ehcache.distribution - package net.sf.ehcache.distribution
This package is for cache replication.
net.sf.ehcache.event - package net.sf.ehcache.event
This package contains interfaces and classes for listening to events.
net.sf.ehcache.hibernate - package net.sf.ehcache.hibernate
This package contains interfaces and classes for Hibernate3.1 and higher.
net.sf.ehcache.store - package net.sf.ehcache.store
Store package.
net.sf.ehcache.util - package net.sf.ehcache.util
Util package.
nextTimestamp() - Method in class net.sf.ehcache.hibernate.EhCache
Gets the next timestamp;
nextTimestamp() - Method in class net.sf.ehcache.hibernate.EhCacheProvider
Returns the next timestamp.
notAlive() - Method in interface net.sf.ehcache.distribution.CacheReplicator
Returns whether the replicator is not active.
notAlive() - Method in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Asserts that the replicator is active.
notifyCacheAdded(String) - Method in interface net.sf.ehcache.event.CacheManagerEventListener
Called immediately after a cache has been added and activated.
notifyCacheRemoved(String) - Method in interface net.sf.ehcache.event.CacheManagerEventListener
Called immediately after a cache has been disposed and removed.
notifyElementExpired(Cache, Element) - Method in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Called immediately after an element is found to be expired. The Cache.remove(Object) method will block until this method returns.

As the Element has been expired, only what was the key of the element is known.

Elements are checked for expiry in ehcache at the following times:

If an element is found to be expired, it is deleted and this method is notified.

This implementation does not propagate expiries.

notifyElementExpired(Cache, Element) - Method in interface net.sf.ehcache.event.CacheEventListener
Called immediately after an element is found to be expired.
notifyElementExpiry(Element, boolean) - Method in class net.sf.ehcache.event.RegisteredEventListeners
Notifies all registered listeners, in no guaranteed order, that an element has expired
notifyElementPut(Cache, Element) - Method in class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator
Called immediately after an element has been put into the cache. The Cache.put(net.sf.ehcache.Element) method will block until this method returns.

Implementers may wish to have access to the Element's fields, including value, so the element is provided. Implementers should be careful not to modify the element. The effect of any modifications is undefined.

This implementation queues the put notification for in-order replication to peers.

notifyElementPut(Cache, Element) - Method in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Called immediately after an element has been put into the cache.
notifyElementPut(Cache, Element) - Method in interface net.sf.ehcache.event.CacheEventListener
Called immediately after an element has been put into the cache.
notifyElementPut(Element, boolean) - Method in class net.sf.ehcache.event.RegisteredEventListeners
Notifies all registered listeners, in no guaranteed order, that an element was put into the cache
notifyElementRemoved(Cache, Element) - Method in class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator
Called immediately after an element has been removed.
notifyElementRemoved(Cache, Element) - Method in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Called immediately after an element has been removed.
notifyElementRemoved(Cache, Element) - Method in interface net.sf.ehcache.event.CacheEventListener
Called immediately after an element has been removed.
notifyElementRemoved(Element, boolean) - Method in class net.sf.ehcache.event.RegisteredEventListeners
Notifies all registered listeners, in no guaranteed order, that an element was removed
notifyElementUpdated(Cache, Element) - Method in class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator
Called immediately after an element has been put into the cache and the element already existed in the cache.
notifyElementUpdated(Cache, Element) - Method in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Called immediately after an element has been put into the cache and the element already existed in the cache.
notifyElementUpdated(Cache, Element) - Method in interface net.sf.ehcache.event.CacheEventListener
Called immediately after an element has been put into the cache and the element already existed in the cache.
notifyElementUpdated(Element, boolean) - Method in class net.sf.ehcache.event.RegisteredEventListeners
Notifies all registered listeners, in no guaranteed order, that an element in the cache was updated
notifyExpiry(Element) - Method in class net.sf.ehcache.store.MemoryStore
Before eviction elements are checked.
notifyingRemoveAll() - Method in class net.sf.ehcache.store.MemoryStore
If there are registered CacheEventListeners they are notified of the expiry or removal of the Element as each is removed.

O

ObjectExistsException - exception net.sf.ehcache.ObjectExistsException.
Thrown when a duplicate cache is attemtpted to be created
ObjectExistsException() - Constructor for class net.sf.ehcache.ObjectExistsException
Constructor for the ObjectExistsException object.
ObjectExistsException(String) - Constructor for class net.sf.ehcache.ObjectExistsException
Constructor for the ObjectExistsException object.
overflowToDisk - Variable in class net.sf.ehcache.config.CacheConfiguration
whether elements can overflow to disk when the in-memory cache has reached the set limit.

P

PUT - Static variable in class net.sf.ehcache.distribution.EventMessage
A put or update event.
PropertyUtil - class net.sf.ehcache.util.PropertyUtil.
Property utilities.
parseConfiguration(File) - Static method in class net.sf.ehcache.config.ConfigurationFactory
Configures a bean from an XML file.
parseConfiguration(URL) - Static method in class net.sf.ehcache.config.ConfigurationFactory
Configures a bean from an XML file available as an URL.
parseConfiguration() - Static method in class net.sf.ehcache.config.ConfigurationFactory
Configures a bean from an XML file in the classpath.
parseConfiguration(InputStream) - Static method in class net.sf.ehcache.config.ConfigurationFactory
Configures a bean from an XML input stream.
parseProperties(String) - Static method in class net.sf.ehcache.util.PropertyUtil
Parse properties supplied as a comma separated list into a Properties object
peerUrls - Variable in class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
Contains a RMI URLs of the form: "//" + hostName + ":" + port + "/" + cacheName;
processRemovedLRU(Object, Object) - Method in class net.sf.ehcache.store.LruMemoryStore.SpoolingLRUMap
Called after the element has been removed.
properties - Variable in class net.sf.ehcache.config.FactoryConfiguration
properties.
put(Element) - Method in class net.sf.ehcache.Cache
Put an element in the cache.
put(Element, boolean) - Method in class net.sf.ehcache.Cache
Put an element in the cache.
put(Element) - Method in interface net.sf.ehcache.distribution.CachePeer
Put an element in the cache.
put(Element) - Method in class net.sf.ehcache.distribution.RMICachePeer
Puts an Element into the underlying cache without notifying listeners or updating statistics.
put(Object, Object) - Method in class net.sf.ehcache.hibernate.EhCache
Puts an object into the cache.
put(Element) - Method in class net.sf.ehcache.store.DiskStore
Puts an element into the disk store.
put(Element) - Method in class net.sf.ehcache.store.MemoryStore
Puts an item in the cache.
put(Element) - Method in interface net.sf.ehcache.store.Store
Puts an item into the cache.
putQuiet(Element) - Method in class net.sf.ehcache.Cache
Put an element in the cache, without updating statistics, or updating listeners.

R

REMOVE - Static variable in class net.sf.ehcache.distribution.EventMessage
A remove or invalidate event.
REPLICATION_THREAD_INTERVAL - Static variable in class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator
The amount of time the replication thread sleeps after it detects the replicationQueue is empty before checking again.
RMIAsynchronousCacheReplicator - class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.
Listens to CacheManager and Cache events and propagates those to CachePeer peers of the Cache asynchronously.
RMIAsynchronousCacheReplicator(boolean, boolean, boolean, boolean) - Constructor for class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator
Constructor for internal and subclass use
RMICacheManagerPeerListener - class net.sf.ehcache.distribution.RMICacheManagerPeerListener.
A cache server which exposes available cache operations remotely through RMI.
RMICacheManagerPeerListener(String, Integer, CacheManager, Integer) - Constructor for class net.sf.ehcache.distribution.RMICacheManagerPeerListener
Constructor with full arguments.
RMICacheManagerPeerListenerFactory - class net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory.
Builds a listener based on RMI.
RMICacheManagerPeerListenerFactory() - Constructor for class net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory
 
RMICacheManagerPeerProvider - class net.sf.ehcache.distribution.RMICacheManagerPeerProvider.
A provider of Peer RMI addresses.
RMICacheManagerPeerProvider(CacheManager) - Constructor for class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
Constructor
RMICacheManagerPeerProvider() - Constructor for class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
Empty constructor
RMICacheManagerPeerProviderFactory - class net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory.
Builds a factory based on RMI
RMICacheManagerPeerProviderFactory() - Constructor for class net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory
 
RMICachePeer - class net.sf.ehcache.distribution.RMICachePeer.
An RMI based implementation of CachePeer.
RMICachePeer(Cache, String, Integer, Integer) - Constructor for class net.sf.ehcache.distribution.RMICachePeer
Construct a new remote peer.
RMICacheReplicatorFactory - class net.sf.ehcache.distribution.RMICacheReplicatorFactory.
Creates an RMICacheReplicator using properties.
RMICacheReplicatorFactory() - Constructor for class net.sf.ehcache.distribution.RMICacheReplicatorFactory
 
RMISynchronousCacheReplicator - class net.sf.ehcache.distribution.RMISynchronousCacheReplicator.
Listens to CacheManager and Cache events and propagates those to CachePeer peers of the Cache.
RMISynchronousCacheReplicator(boolean, boolean, boolean, boolean) - Constructor for class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Constructor for internal and subclass use
RegisteredEventListeners - class net.sf.ehcache.event.RegisteredEventListeners.
Registered listeners for registering and unregistering CacheEventListeners and multicasting notifications to registrants.
RegisteredEventListeners(Cache) - Constructor for class net.sf.ehcache.event.RegisteredEventListeners
Constructs a new notification service
RemoteCacheException - exception net.sf.ehcache.distribution.RemoteCacheException.
A Cache Exception in the distribution mechanism.
RemoteCacheException() - Constructor for class net.sf.ehcache.distribution.RemoteCacheException
Constructor for the RemoteCacheException object.
RemoteCacheException(String) - Constructor for class net.sf.ehcache.distribution.RemoteCacheException
Constructor for the RemoteCacheException object.
read(Object) - Method in class net.sf.ehcache.hibernate.EhCache
Gets an object from the cache.
registerCacheListeners(CacheConfiguration, RegisteredEventListeners) - Static method in class net.sf.ehcache.config.ConfigurationHelper
A factory method to create a RegisteredEventListeners
registerListener(CacheEventListener) - Method in class net.sf.ehcache.event.RegisteredEventListeners
Adds a listener to the notification service.
registerPeer(String) - Method in interface net.sf.ehcache.distribution.CacheManagerPeerProvider
Register a new peer.
registerPeer(String) - Method in class net.sf.ehcache.distribution.ManualRMICacheManagerPeerProvider
Register a new peer.
registerPeer(String) - Method in class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider
Register a new peer.
registerPeer(String) - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
Register a new peer
removalAll() - Method in class net.sf.ehcache.CacheManager
Removes all caches using CacheManager.removeCache(java.lang.String) for each cache.
remove(Serializable) - Method in class net.sf.ehcache.Cache
Removes an Element from the Cache.
remove(Object) - Method in class net.sf.ehcache.Cache
Removes an Element from the Cache.
remove(Serializable, boolean) - Method in class net.sf.ehcache.Cache
Removes an Element from the Cache.
remove(Object, boolean) - Method in class net.sf.ehcache.Cache
Removes an Element from the Cache.
remove(Serializable) - Method in interface net.sf.ehcache.distribution.CachePeer
Removes an Element from the Cache.
remove(Serializable) - Method in class net.sf.ehcache.distribution.RMICachePeer
Removes an Element from the underlying cache without notifying listeners or updating statistics.
remove(Object) - Method in class net.sf.ehcache.hibernate.EhCache
Removes the element which matches the key.
remove(Object) - Method in class net.sf.ehcache.store.DiskStore
Removes an item from the disk store.
remove(Object) - Method in class net.sf.ehcache.store.MemoryStore
Removes an Element from the store.
remove(Object) - Method in interface net.sf.ehcache.store.Store
Removes an item from the cache.
removeAll() - Method in class net.sf.ehcache.Cache
Removes all cached items.
removeAll() - Method in interface net.sf.ehcache.distribution.CachePeer
Removes all cached items.
removeAll() - Method in class net.sf.ehcache.distribution.RMICachePeer
Removes all cached items.
removeAll() - Method in class net.sf.ehcache.store.DiskStore
Remove all of the elements from the store.
removeAll() - Method in class net.sf.ehcache.store.MemoryStore
Remove all of the elements from the store.
removeAll() - Method in interface net.sf.ehcache.store.Store
Remove all of the elements from the store.
removeCache(String) - Method in class net.sf.ehcache.CacheManager
Remove a cache from the CacheManager.
removeEldestEntry(Map.Entry) - Method in class net.sf.ehcache.store.LruMemoryStore.SpoolingLinkedHashMap
Returns true if this map should remove its eldest entry.
removeQuiet(Serializable) - Method in class net.sf.ehcache.Cache
Removes an Element from the Cache, without notifying listeners.
removeQuiet(Object) - Method in class net.sf.ehcache.Cache
Removes an Element from the Cache, without notifying listeners.
replicatePuts - Variable in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Whether to replicate puts.
replicateRemovals - Variable in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Whether to replicate removes
replicateUpdates - Variable in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Whether to replicate updates.
replicateUpdatesViaCopy - Variable in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
Whether an update (a put) should be by copy or by invalidation, (a remove).
replicationQueue - Variable in class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator
A queue of updates.
replicationThread - Variable in class net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator
A thread which handles replication, so that replication can take place asynchronously and not hold up the cache
resetAccessStatistics() - Method in class net.sf.ehcache.Element
Resets the hit count to 0 and the last access time to 0.

S

STALE_PEER_TIME_MS - Static variable in class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider
The number of ms until the peer is considered to be offline.
STATUS_ALIVE - Static variable in class net.sf.ehcache.Status
The cache is alive.
STATUS_SHUTDOWN - Static variable in class net.sf.ehcache.Status
The cache is shudown.
STATUS_UNINITIALISED - Static variable in class net.sf.ehcache.Status
The cache is uninitialised.
Status - class net.sf.ehcache.Status.
A pre JDK1.5 compatible enum class to indicate the status of a CacheManager or Cache.
Store - interface net.sf.ehcache.store.Store.
This is the interface for all stores.
send(List) - Method in interface net.sf.ehcache.distribution.CachePeer
Send the cache peer with an ordered list of EventMessages.
send(List) - Method in class net.sf.ehcache.distribution.RMICachePeer
Send the cache peer with an ordered list of EventMessages

This enables multiple messages to be delivered in one network invocation.

setCacheManagerEventListener(CacheManagerEventListener) - Method in class net.sf.ehcache.CacheManager
Sets the CacheManager event listener.
setClass(String) - Method in class net.sf.ehcache.config.FactoryConfiguration
Sets the class name.
setCreateTime() - Method in class net.sf.ehcache.Element
Sets the creationTime attribute of the ElementAttributes object.
setDefaultCacheConfiguration(CacheConfiguration) - Method in class net.sf.ehcache.config.Configuration
 
setDiskExpiryThreadIntervalSeconds(int) - Method in class net.sf.ehcache.config.CacheConfiguration
Sets the interval in seconds between runs of the disk expiry thread.
setDiskPersistent(boolean) - Method in class net.sf.ehcache.config.CacheConfiguration
Sets whether, for caches that overflow to disk, the disk cache persist between CacheManager instances.
setEternal(boolean) - Method in class net.sf.ehcache.config.CacheConfiguration
Sets whether elements are eternal.
setMaxElementsInMemory(int) - Method in class net.sf.ehcache.config.CacheConfiguration
Sets the maximum objects to be held in memory.
setMemoryStoreEvictionPolicy(String) - Method in class net.sf.ehcache.config.CacheConfiguration
Sets the eviction policy.
setName(String) - Method in class net.sf.ehcache.config.CacheConfiguration
Sets the name of the cache.
setOverflowToDisk(boolean) - Method in class net.sf.ehcache.config.CacheConfiguration
Sets whether elements can overflow to disk when the in-memory cache has reached the set limit.
setPath(String) - Method in class net.sf.ehcache.config.DiskStoreConfiguration
Translates and sets the path.
setProperties(String) - Method in class net.sf.ehcache.config.FactoryConfiguration
Sets the configuration properties.
setSource(String) - Method in class net.sf.ehcache.config.Configuration
Sets the configuration source.
setTimeToIdleSeconds(int) - Method in class net.sf.ehcache.config.CacheConfiguration
Sets the time to idle for an element before it expires.
setTimeToLiveSeconds(int) - Method in class net.sf.ehcache.config.CacheConfiguration
Sets the time to idle for an element before it expires.
setVersion(long) - Method in class net.sf.ehcache.Element
Sets the version attribute of the ElementAttributes object.
shutdown() - Method in class net.sf.ehcache.CacheManager
Shuts down the CacheManager.
spoolAllToDisk() - Method in class net.sf.ehcache.store.MemoryStore
Spools all elements to disk, in preparation for shutdown.
spoolToDisk(Element) - Method in class net.sf.ehcache.store.MemoryStore
Puts the element in the DiskStore.
stale(Date) - Method in class net.sf.ehcache.distribution.ManualRMICacheManagerPeerProvider
Whether the entry should be considered stale.
stale(Date) - Method in class net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider
Whether the entry should be considered stale.
stale(Date) - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
Whether the entry should be considered stale.
start(Properties) - Method in class net.sf.ehcache.hibernate.EhCacheProvider
Callback to perform any necessary initialization of the underlying cache implementation during SessionFactory construction.
status - Variable in class net.sf.ehcache.distribution.RMISynchronousCacheReplicator
The status of the replicator.
status - Variable in class net.sf.ehcache.store.MemoryStore
status.
stop() - Method in class net.sf.ehcache.hibernate.EhCacheProvider
Callback to perform any necessary cleanup of the underlying cache implementation during SessionFactory.close().

T

timeToIdleSeconds - Variable in class net.sf.ehcache.config.CacheConfiguration
the time to idle for an element before it expires.
timeToLiveSeconds - Variable in class net.sf.ehcache.config.CacheConfiguration
Sets the time to idle for an element before it expires.
toMap() - Method in class net.sf.ehcache.hibernate.EhCache
 
toString() - Method in class net.sf.ehcache.Cache
Returns a String representation of Cache.
toString() - Method in class net.sf.ehcache.Element
Returns a String representation of the Element.
toString() - Method in class net.sf.ehcache.Status
Returns a string representation of the object.
toString() - Method in class net.sf.ehcache.event.RegisteredEventListeners
Returns a string representation of the object.
toString() - Method in class net.sf.ehcache.hibernate.EhCache
 
toString() - Method in class net.sf.ehcache.store.DiskStore
Returns a String representation of the DiskStore
toString() - Method in class net.sf.ehcache.store.MemoryStoreEvictionPolicy
 

U

unlock(Object) - Method in class net.sf.ehcache.hibernate.EhCache
Calls to this method should perform their own synchronization.
unregisterListener(CacheEventListener) - Method in class net.sf.ehcache.event.RegisteredEventListeners
Removes a listener from the notification service.
unregisterPeer(String) - Method in interface net.sf.ehcache.distribution.CacheManagerPeerProvider
Unregisters a peer.
unregisterPeer(String) - Method in class net.sf.ehcache.distribution.RMICacheManagerPeerProvider
Unregisters a peer
update(Object, Object) - Method in class net.sf.ehcache.hibernate.EhCache
Updates an object in the cache, or if it does not exist, inserts it.
updateAccessStatistics() - Method in class net.sf.ehcache.Element
Sets the last access time to now.

A B C D E F G H I L M N O P R S T U
ehcache

true