Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
CacheAccess.getCacheElement(K name)
This method returns the ICacheElement<K, V> wrapper which provides access to element info and other
attributes.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
CacheAccess.getCacheElements(Set<K> names)
Get multiple elements from the cache based on a set of cache keys.
|
Map<K,ICacheElement<K,V>> |
CacheAccess.getMatchingCacheElements(String pattern)
Get multiple elements from the cache based on a set of cache keys.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
ICacheAccess.getCacheElement(K name)
This method returns the ICacheElement<K, V> wrapper which provides access to element info and other
attributes.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
ICacheAccess.getCacheElements(Set<K> names)
Get multiple elements from the cache based on a set of cache keys.
|
Map<K,ICacheElement<K,V>> |
ICacheAccess.getMatchingCacheElements(String pattern)
Get multiple elements from the cache based on a set of cache keys.
|
Modifier and Type | Method and Description |
---|---|
abstract ICacheElement<K,V> |
AbstractAuxiliaryCache.get(K key)
Gets the item from the cache.
|
ICacheElement<K,V> |
AbstractAuxiliaryCacheEventLogging.get(K key)
Gets the item from the cache.
|
protected ICacheElement<K,V> |
AbstractAuxiliaryCacheEventLogging.getWithEventLogging(K key)
Gets the item from the cache.
|
protected abstract ICacheElement<K,V> |
AbstractAuxiliaryCacheEventLogging.processGet(K key)
Implementation of get.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
AbstractAuxiliaryCacheEventLogging.getMatching(String pattern)
Gets items from the cache matching the given pattern.
|
protected Map<K,ICacheElement<K,V>> |
AbstractAuxiliaryCacheEventLogging.getMatchingWithEventLogging(String pattern)
Gets matching items from the cache based on the given pattern.
|
Map<K,ICacheElement<K,V>> |
AbstractAuxiliaryCacheEventLogging.getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
protected Map<K,ICacheElement<K,V>> |
AbstractAuxiliaryCacheEventLogging.getMultipleWithEventLogging(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
protected abstract Map<K,ICacheElement<K,V>> |
AbstractAuxiliaryCacheEventLogging.processGetMatching(String pattern)
Implementation of getMatching.
|
protected Map<K,ICacheElement<K,V>> |
AbstractAuxiliaryCache.processGetMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Modifier and Type | Method and Description |
---|---|
protected ICacheEvent<K> |
AbstractAuxiliaryCache.createICacheEvent(ICacheElement<K,V> item,
String eventName)
Logs an event if an event logger is configured.
|
protected abstract void |
AbstractAuxiliaryCacheEventLogging.processUpdate(ICacheElement<K,V> cacheElement)
Implementation of put.
|
void |
AbstractAuxiliaryCacheEventLogging.update(ICacheElement<K,V> cacheElement)
Puts an item into the cache.
|
protected void |
AbstractAuxiliaryCacheEventLogging.updateWithEventLogging(ICacheElement<K,V> cacheElement)
Puts an item into the cache.
|
Modifier and Type | Class and Description |
---|---|
class |
PurgatoryElement<K,V>
Implementation of cache elements in purgatory.
|
Modifier and Type | Method and Description |
---|---|
protected ICacheElement<K,V> |
AbstractDiskCache.doGet(K key)
Get a value from the persistent store.
|
ICacheElement<K,V> |
AbstractDiskCache.get(K key)
Check to see if the item is in purgatory.
|
ICacheElement<K,V> |
PurgatoryElement.getCacheElement()
Get the wrapped cache element.
|
Modifier and Type | Method and Description |
---|---|
protected Map<K,ICacheElement<K,V>> |
AbstractDiskCache.doGetMatching(String pattern)
Get a value from the persistent store.
|
Map<K,ICacheElement<K,V>> |
AbstractDiskCache.getMatching(String pattern)
Gets items from the cache matching the given pattern.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractDiskCache.doUpdate(ICacheElement<K,V> cacheElement)
Add a cache element to the persistent store.
|
void |
AbstractDiskCache.MyCacheListener.handlePut(ICacheElement<K,V> element) |
void |
AbstractDiskCache.update(ICacheElement<K,V> cacheElement)
Adds the provided element to the cache.
|
Constructor and Description |
---|
PurgatoryElement(ICacheElement<K,V> cacheElement)
Constructor for the PurgatoryElement<K, V> object
|
Modifier and Type | Method and Description |
---|---|
protected ICacheElement<K,V> |
BlockDiskCache.processGet(K key)
Gets the ICacheElement<K, V> for the key if it is in the cache.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
BlockDiskCache.processGetMatching(String pattern)
Gets matching items from the cache.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BlockDiskCache.processUpdate(ICacheElement<K,V> element)
Writes an element to disk.
|
Modifier and Type | Method and Description |
---|---|
protected ICacheElement<K,V> |
IndexedDiskCache.processGet(K key)
Gets the key, then goes to disk to get the object.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
IndexedDiskCache.processGetMatching(String pattern)
Gets matching items from the cache.
|
Modifier and Type | Method and Description |
---|---|
protected void |
IndexedDiskCache.processUpdate(ICacheElement<K,V> ce)
Update the disk cache.
|
Modifier and Type | Method and Description |
---|---|
protected ICacheElement<K,V> |
JDBCDiskCache.processGet(K key)
Queries the database for the value.
|
Modifier and Type | Method and Description |
---|---|
protected Map<K,ICacheElement<K,V>> |
JDBCDiskCache.processGetMatching(String pattern)
This will run a like query.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
JDBCDiskCache.doesElementExist(ICacheElement<K,V> ce,
Connection con)
Does an element exist for this key?
|
protected void |
JDBCDiskCache.processUpdate(ICacheElement<K,V> ce)
Inserts or updates.
|
Modifier and Type | Method and Description |
---|---|
protected ICacheElement<K,V> |
MySQLDiskCache.processGet(K key)
This delegates to the generic JDBC disk cache.
|
Modifier and Type | Method and Description |
---|---|
protected Map<K,ICacheElement<K,V>> |
MySQLDiskCache.processGetMatching(String pattern)
This delegates to the generic JDBC disk cache.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MySQLDiskCache.processUpdate(ICacheElement<K,V> element)
This delegates to the generic JDBC disk cache.
|
Modifier and Type | Field and Description |
---|---|
ICacheElement<K,V> |
LateralElementDescriptor.ce
The Cache Element that we are distributing.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
LateralCacheNoWaitFacade.get(K key)
Synchronously reads from the lateral cache.
|
ICacheElement<K,V> |
LateralCacheNoWait.get(K key)
Synchronously reads from the lateral cache.
|
ICacheElement<K,V> |
LateralElementDescriptor.getPayload()
Return payload
|
protected ICacheElement<K,V> |
LateralCache.processGet(K key)
The performance costs are too great.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
LateralCacheNoWaitFacade.getMatching(String pattern)
Synchronously reads from the lateral cache.
|
Map<K,ICacheElement<K,V>> |
LateralCacheNoWait.getMatching(String pattern)
Synchronously reads from the lateral cache.
|
Map<K,ICacheElement<K,V>> |
LateralCacheNoWaitFacade.getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
LateralCacheNoWait.getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
protected Map<K,ICacheElement<K,V>> |
LateralCache.processGetMatching(String pattern) |
Modifier and Type | Method and Description |
---|---|
protected void |
LateralCache.processUpdate(ICacheElement<K,V> ce)
Update lateral.
|
void |
LateralCacheNoWaitFacade.update(ICacheElement<K,V> ce)
Update the cache element in all lateral caches
|
void |
LateralCacheNoWait.update(ICacheElement<K,V> ce) |
Constructor and Description |
---|
LateralElementDescriptor(ICacheElement<K,V> ce)
Constructor for the LateralElementDescriptor object
|
LateralElementDescriptor(ICacheElement<K,V> ce,
LateralCommand command)
Constructor for the LateralElementDescriptor object
|
LateralElementDescriptor(ICacheElement<K,V> ce,
LateralCommand command,
long requesterId)
Constructor for the LateralElementDescriptor object
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
LateralTCPService.get(String cacheName,
K key) |
ICacheElement<K,V> |
LateralTCPService.get(String cacheName,
K key,
long requesterId)
If get is allowed, we will issues a get request.
|
ICacheElement<K,V> |
LateralTCPListener.handleGet(String cacheName,
K key)
Gets the cache that was injected by the lateral factory.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
LateralTCPService.getMatching(String cacheName,
String pattern)
If allow get is true, we will issue a getmatching query.
|
Map<K,ICacheElement<K,V>> |
LateralTCPService.getMatching(String cacheName,
String pattern,
long requesterId)
If allow get is true, we will issue a getmatching query.
|
Map<K,ICacheElement<K,V>> |
LateralTCPService.getMultiple(String cacheName,
Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
LateralTCPService.getMultiple(String cacheName,
Set<K> keys,
long requesterId)
This issues a separate get for each item.
|
Map<K,ICacheElement<K,V>> |
LateralTCPListener.handleGetMatching(String cacheName,
String pattern)
Gets the cache that was injected by the lateral factory.
|
Modifier and Type | Method and Description |
---|---|
void |
LateralTCPListener.handlePut(ICacheElement<K,V> element)
Increments the put count.
|
void |
LateralTCPService.update(ICacheElement<K,V> item) |
void |
LateralTCPService.update(ICacheElement<K,V> item,
long requesterId)
If put is allowed, we will issue a put.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
RemoteCacheNoWait.get(K key)
Synchronously reads from the remote cache.
|
ICacheElement<K,V> |
AbstractRemoteCacheNoWaitFacade.get(K key)
Synchronously reads from the remote cache.
|
ICacheElement<K,V> |
AbstractRemoteAuxiliaryCache.getUsingPool(K key)
This allows gets to timeout in case of remote server machine shutdown.
|
protected ICacheElement<K,V> |
AbstractRemoteAuxiliaryCache.processGet(K key)
Synchronously get from the remote cache; if failed, replace the remote handle with a zombie.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
RemoteCacheNoWait.getMatching(String pattern) |
Map<K,ICacheElement<K,V>> |
AbstractRemoteCacheNoWaitFacade.getMatching(String pattern)
Synchronously read from the remote cache.
|
Map<K,ICacheElement<K,V>> |
RemoteCacheNoWait.getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
AbstractRemoteCacheNoWaitFacade.getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
AbstractRemoteAuxiliaryCache.processGetMatching(String pattern)
Calls get matching on the server.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractRemoteCacheListener.handlePut(ICacheElement<K,V> cb)
If this is configured to remove on put, then remove the element since it has been updated
elsewhere. cd should be incomplete for faster transmission.
|
protected void |
AbstractRemoteAuxiliaryCache.processUpdate(ICacheElement<K,V> ce)
Serializes the object and then calls update on the remote server with the byte array.
|
void |
RemoteCacheNoWait.update(ICacheElement<K,V> element)
Adds a put event to the queue.
|
void |
AbstractRemoteCacheNoWaitFacade.update(ICacheElement<K,V> ce)
Put an element in the cache.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
RemoteHttpCacheClient.get(String cacheName,
K key)
Create a request, process, extract the payload.
|
ICacheElement<K,V> |
RemoteHttpCacheClient.get(String cacheName,
K key,
long requesterId)
Create a request, process, extract the payload.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
RemoteHttpCacheClient.getMatching(String cacheName,
String pattern)
Gets multiple items from the cache matching the pattern.
|
Map<K,ICacheElement<K,V>> |
RemoteHttpCacheClient.getMatching(String cacheName,
String pattern,
long requesterId)
Gets multiple items from the cache matching the pattern.
|
Map<K,ICacheElement<K,V>> |
RemoteHttpCacheClient.getMultiple(String cacheName,
Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
RemoteHttpCacheClient.getMultiple(String cacheName,
Set<K> keys,
long requesterId)
Gets multiple items from the cache based on the given set of keys.
|
Modifier and Type | Method and Description |
---|---|
void |
RemoteHttpCacheClient.update(ICacheElement<K,V> item)
Puts a cache item to the cache.
|
void |
RemoteHttpCacheClient.update(ICacheElement<K,V> cacheElement,
long requesterId)
Puts a cache item to the cache.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
AbstractRemoteCacheService.get(String cacheName,
K key)
Returns a cache value from the specified remote cache; or null if the cache or key does not
exist.
|
ICacheElement<K,V> |
AbstractRemoteCacheService.get(String cacheName,
K key,
long requesterId)
Returns a cache bean from the specified cache; or null if the key does not exist.
|
ICacheElement<K,V> |
RemoteHttpCacheService.processGet(String cacheName,
K key,
long requesterId)
Processes a get request.
|
Modifier and Type | Method and Description |
---|---|
protected ICacheEvent<ICacheElement<K,V>> |
AbstractRemoteCacheService.createICacheEvent(ICacheElement<K,V> item,
long requesterId,
String eventName)
Logs an event if an event logger is configured.
|
Map<K,ICacheElement<K,V>> |
AbstractRemoteCacheService.getMatching(String cacheName,
String pattern)
Gets all matching items.
|
Map<K,ICacheElement<K,V>> |
AbstractRemoteCacheService.getMatching(String cacheName,
String pattern,
long requesterId)
Retrieves all matching keys.
|
Map<K,ICacheElement<K,V>> |
AbstractRemoteCacheService.getMultiple(String cacheName,
Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
AbstractRemoteCacheService.getMultiple(String cacheName,
Set<K> keys,
long requesterId)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
RemoteHttpCacheService.processGetMatching(String cacheName,
String pattern,
long requesterId)
Processes a get request.
|
Map<K,ICacheElement<K,V>> |
RemoteHttpCacheService.processGetMultiple(String cacheName,
Set<K> keys,
long requesterId)
Processes a get request.
|
Modifier and Type | Method and Description |
---|---|
protected ICacheEvent<ICacheElement<K,V>> |
AbstractRemoteCacheService.createICacheEvent(ICacheElement<K,V> item,
long requesterId,
String eventName)
Logs an event if an event logger is configured.
|
void |
RemoteHttpCacheService.processUpdate(ICacheElement<K,V> item,
long requesterId)
Processes an update request.
|
void |
AbstractRemoteCacheService.update(ICacheElement<K,V> item) |
void |
AbstractRemoteCacheService.update(ICacheElement<K,V> item,
long requesterId)
The internal processing is wrapped in event logging calls.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
RemoteCacheServer.get(String cacheName,
K key)
Returns a cache value from the specified remote cache; or null if the cache or key does not
exist.
|
ICacheElement<K,V> |
RemoteCacheServer.get(String cacheName,
K key,
long requesterId)
Returns a cache bean from the specified cache; or null if the key does not exist.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
RemoteCacheServer.getMatching(String cacheName,
String pattern)
Gets all matching items.
|
Map<K,ICacheElement<K,V>> |
RemoteCacheServer.getMatching(String cacheName,
String pattern,
long requesterId)
Retrieves all matching keys.
|
Map<K,ICacheElement<K,V>> |
RemoteCacheServer.getMultiple(String cacheName,
Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
RemoteCacheServer.getMultiple(String cacheName,
Set<K> keys,
long requesterId)
Gets multiple items from the cache based on the given set of keys.
|
protected Map<K,ICacheElement<K,V>> |
RemoteCacheServer.processGetMatching(String cacheName,
String pattern,
long requesterId)
Retrieves all matching keys.
|
Modifier and Type | Method and Description |
---|---|
void |
RemoteCacheServer.put(ICacheElement<K,V> item)
Puts a cache bean to the remote cache and notifies all listeners which
have a different listener id than the originating host; are currently subscribed to the related cache. |
void |
RemoteCacheServer.update(ICacheElement<K,V> item) |
void |
RemoteCacheServer.update(ICacheElement<K,V> item,
long requesterId)
The internal processing is wrapped in event logging calls.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> RemoteCacheRequest<K,V> |
RemoteCacheRequestFactory.createUpdateRequest(ICacheElement<K,V> cacheElement,
long requesterId)
Creates an Update Request.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
RemoteCacheRequest.getCacheElement() |
Modifier and Type | Method and Description |
---|---|
void |
RemoteCacheRequest.setCacheElement(ICacheElement<K,V> cacheElement) |
Modifier and Type | Class and Description |
---|---|
class |
CacheElement<K,V>
Generic element wrapper.
|
class |
CacheElementSerialized<K,V>
Either serialized value or the value should be null;
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
ZombieCacheService.get(String cacheName,
K key) |
ICacheElement<K,V> |
ZombieCacheServiceNonLocal.get(String cacheName,
K key,
long requesterId)
Does nothing.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
ZombieCacheService.getMatching(String cacheName,
String pattern)
Returns an empty map.
|
Map<K,ICacheElement<K,V>> |
ZombieCacheServiceNonLocal.getMatching(String cacheName,
String pattern,
long requesterId)
Does nothing.
|
Map<K,ICacheElement<K,V>> |
ZombieCacheService.getMultiple(String cacheName,
Set<K> keys)
Returns an empty map.
|
Map<K,ICacheElement<K,V>> |
ZombieCacheServiceNonLocal.getMultiple(String cacheName,
Set<K> keys,
long requesterId) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractCacheEventQueue.addPutEvent(ICacheElement<K,V> ce)
This adds a put event to the queue.
|
void |
CacheAdaptor.handlePut(ICacheElement<K,V> item)
Puts an item into the cache.
|
void |
ZombieCacheService.put(ICacheElement<K,V> item) |
void |
ZombieCacheService.update(ICacheElement<K,V> item)
Does nothing.
|
void |
ZombieCacheServiceNonLocal.update(ICacheElement<K,V> item,
long listenerId)
Adds an update event to the queue if the maxSize is greater than 0;
|
Modifier and Type | Interface and Description |
---|---|
interface |
ICacheElementSerialized<K,V>
This interface defines the behavior of the serialized element wrapper.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
ICache.get(K key)
Gets an item from the cache.
|
ICacheElement<K,V> |
ICacheService.get(String cacheName,
K key)
Returns a cache bean from the specified cache; or null if the key does not exist.
|
ICacheElement<K,V> |
ICacheServiceNonLocal.get(String cacheName,
K key,
long requesterId)
Returns a cache bean from the specified cache; or null if the key does not exist.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
ICache.getMatching(String pattern)
Gets items from the cache matching the given pattern.
|
Map<K,ICacheElement<K,V>> |
ICacheService.getMatching(String cacheName,
String pattern)
Gets multiple items from the cache matching the pattern.
|
Map<K,ICacheElement<K,V>> |
ICacheServiceNonLocal.getMatching(String cacheName,
String pattern,
long requesterId)
Gets multiple items from the cache matching the pattern.
|
Map<K,ICacheElement<K,V>> |
ICache.getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
ICacheService.getMultiple(String cacheName,
Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Map<K,ICacheElement<K,V>> |
ICacheServiceNonLocal.getMultiple(String cacheName,
Set<K> keys,
long requesterId)
Gets multiple items from the cache based on the given set of keys.
|
Modifier and Type | Method and Description |
---|---|
void |
ICacheEventQueue.addPutEvent(ICacheElement<K,V> ce)
Adds a feature to the PutEvent attribute of the ICacheEventQueue object
|
void |
ICacheListener.handlePut(ICacheElement<K,V> item)
Notifies the subscribers for a cache entry update.
|
void |
ICache.update(ICacheElement<K,V> element)
Puts an item to the cache.
|
void |
ICacheService.update(ICacheElement<K,V> item)
Puts a cache item to the cache.
|
void |
ICacheServiceNonLocal.update(ICacheElement<K,V> item,
long requesterId)
Puts a cache item to the cache.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
CompositeCache.get(K key)
Gets an item from the cache.
|
protected ICacheElement<K,V> |
CompositeCache.get(K key,
boolean localOnly)
Look in memory, then disk, remote, or laterally for this item.
|
ICacheElement<K,V> |
CompositeCache.localGet(K key)
Do not try to go remote or laterally for this get.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
CompositeCache.getMatching(String pattern)
Build a map of all the matching elements in all of the auxiliaries and memory.
|
protected Map<K,ICacheElement<K,V>> |
CompositeCache.getMatching(String pattern,
boolean localOnly)
Build a map of all the matching elements in all of the auxiliaries and memory.
|
protected Map<K,ICacheElement<K,V>> |
CompositeCache.getMatchingFromMemory(String pattern)
Gets the key array from the memcache.
|
Map<K,ICacheElement<K,V>> |
CompositeCache.getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
protected Map<K,ICacheElement<K,V>> |
CompositeCache.getMultiple(Set<K> keys,
boolean localOnly)
Look in memory, then disk, remote, or laterally for these items.
|
Map<K,ICacheElement<K,V>> |
CompositeCache.localGetMatching(String pattern)
Build a map of all the matching elements in all of the auxiliaries and memory.
|
Map<K,ICacheElement<K,V>> |
CompositeCache.localGetMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CompositeCache.doExpires(ICacheElement<K,V> element) |
void |
CompositeCache.handleElementEvent(ICacheElement<K,V> element,
ElementEventType eventType)
If there are event handlers for the item, then create an event and queue it up.
|
boolean |
CompositeCache.isExpired(ICacheElement<K,V> element)
Determine if the element is expired based on the values of the element attributes
|
boolean |
CompositeCache.isExpired(ICacheElement<K,V> element,
long timestamp,
ElementEventType eventMaxlife,
ElementEventType eventIdle)
Check if the element is expired based on the values of the element attributes
|
void |
CompositeCache.localUpdate(ICacheElement<K,V> ce)
Standard update method.
|
void |
CompositeCache.spoolToDisk(ICacheElement<K,V> ce)
Writes the specified element to any disk auxiliaries.
|
void |
CompositeCache.update(ICacheElement<K,V> ce)
Standard update method.
|
protected void |
CompositeCache.update(ICacheElement<K,V> cacheElement,
boolean localOnly)
Put an item into the cache.
|
protected void |
CompositeCache.updateAuxiliaries(ICacheElement<K,V> cacheElement,
boolean localOnly)
This method is responsible for updating the auxiliaries if they are present.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
AbstractMemoryCache.get(K key)
Get an item from the cache.
|
ICacheElement<K,V> |
AbstractDoubleLinkedListMemoryCache.get(K key) |
ICacheElement<K,V> |
AbstractMemoryCache.getQuiet(K key)
Get an item from the cache without affecting its last access time or position.
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
AbstractMemoryCache.getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Modifier and Type | Method and Description |
---|---|
protected MemoryElementDescriptor<K,V> |
AbstractDoubleLinkedListMemoryCache.addFirst(ICacheElement<K,V> ce)
Adds a new node to the start of the link list.
|
protected MemoryElementDescriptor<K,V> |
AbstractDoubleLinkedListMemoryCache.addLast(ICacheElement<K,V> ce)
Adds a new node to the end of the link list.
|
protected abstract MemoryElementDescriptor<K,V> |
AbstractDoubleLinkedListMemoryCache.adjustListForUpdate(ICacheElement<K,V> ce)
Children implement this to control the cache expiration algorithm
|
abstract void |
AbstractMemoryCache.update(ICacheElement<K,V> ce)
Puts an item to the cache.
|
void |
AbstractDoubleLinkedListMemoryCache.update(ICacheElement<K,V> ce)
Calls the abstract method updateList.
|
void |
AbstractMemoryCache.waterfal(ICacheElement<K,V> ce)
Puts an item to the cache.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
IMemoryCache.get(K key)
Get an item from the cache
|
ICacheElement<K,V> |
IMemoryCache.getQuiet(K key)
Get an item from the cache without effecting its order or last access
time
|
Modifier and Type | Method and Description |
---|---|
Map<K,ICacheElement<K,V>> |
IMemoryCache.getMultiple(Set<K> keys)
Gets multiple items from the cache based on the given set of keys.
|
Modifier and Type | Method and Description |
---|---|
void |
IMemoryCache.update(ICacheElement<K,V> ce)
Puts an item to the cache.
|
void |
IMemoryCache.waterfal(ICacheElement<K,V> ce)
Spools the item contained in the provided element to disk
|
Modifier and Type | Method and Description |
---|---|
protected MemoryElementDescriptor<K,V> |
FIFOMemoryCache.adjustListForUpdate(ICacheElement<K,V> ce)
Puts an item to the cache.
|
Modifier and Type | Method and Description |
---|---|
protected MemoryElementDescriptor<K,V> |
LRUMemoryCache.adjustListForUpdate(ICacheElement<K,V> ce)
Puts an item to the cache.
|
void |
LHMLRUMemoryCache.update(ICacheElement<K,V> ce)
Puts an item to the cache.
|
Modifier and Type | Method and Description |
---|---|
protected MemoryElementDescriptor<K,V> |
MRUMemoryCache.adjustListForUpdate(ICacheElement<K,V> ce)
Adds the item to the front of the list.
|
Modifier and Type | Method and Description |
---|---|
void |
SoftReferenceMemoryCache.update(ICacheElement<K,V> ce)
Puts an item to the cache.
|
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
SoftReferenceElementDescriptor.getCacheElement() |
ICacheElement<K,V> |
MemoryElementDescriptor.getCacheElement()
Get the cache element
|
Constructor and Description |
---|
MemoryElementDescriptor(ICacheElement<K,V> ce)
Constructs a usable MemoryElementDescriptor.
|
SoftReferenceElementDescriptor(ICacheElement<K,V> ce)
Constructs a usable MemoryElementDescriptor.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> ICacheElement<K,V> |
SerializationConversionUtil.getDeSerializedCacheElement(ICacheElementSerialized<K,V> serialized,
IElementSerializer elementSerializer)
This returns a wrapper that has a de-serialized version of the value
instead of the serialized value.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> ICacheElementSerialized<K,V> |
SerializationConversionUtil.getSerializedCacheElement(ICacheElement<K,V> element,
IElementSerializer elementSerializer)
This returns a wrapper that has a serialized version of the value instead
of the value.
|
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.