org.apache.jcs.auxiliary.lateral.behavior
Interface ILateralCacheService

All Superinterfaces:
ICacheService
All Known Implementing Classes:
LateralTCPService, ZombieLateralCacheService

public interface ILateralCacheService
extends ICacheService

Used to retrieve and update the lateral cache.


Method Summary
 java.util.Set getGroupKeys(java.lang.String cacheName, java.lang.String groupName)
           
 java.util.Map getMatching(java.lang.String cacheName, java.lang.String pattern)
          Gets multiple items from the cache matching the pattern.
 void remove(java.lang.String cacheName, java.io.Serializable key, long requesterId)
          Removes the given key from the specified cache.
 void removeAll(java.lang.String cacheName, long requesterId)
          Remove all keys from the sepcified cache.
 void update(ICacheElement item, long requesterId)
          Puts a cache item to the cache.
 
Methods inherited from interface org.apache.jcs.engine.behavior.ICacheService
dispose, get, getMultiple, release, remove, removeAll, update
 

Method Detail

update

void update(ICacheElement item,
            long requesterId)
            throws java.io.IOException
Puts a cache item to the cache.

Parameters:
item -
requesterId -
Throws:
java.io.IOException

remove

void remove(java.lang.String cacheName,
            java.io.Serializable key,
            long requesterId)
            throws java.io.IOException
Removes the given key from the specified cache.

Parameters:
cacheName -
key -
requesterId -
Throws:
java.io.IOException

removeAll

void removeAll(java.lang.String cacheName,
               long requesterId)
               throws java.io.IOException
Remove all keys from the sepcified cache.

Parameters:
cacheName -
requesterId -
Throws:
java.io.IOException

getGroupKeys

java.util.Set getGroupKeys(java.lang.String cacheName,
                           java.lang.String groupName)
Parameters:
cacheName -
groupName -
Returns:
keys

getMatching

java.util.Map getMatching(java.lang.String cacheName,
                          java.lang.String pattern)
                          throws java.io.IOException
Gets multiple items from the cache matching the pattern.

Specified by:
getMatching in interface ICacheService
Parameters:
cacheName -
pattern -
Returns:
a map of Serializable key to ICacheElement element, or an empty map if there is no data in cache matching the pattern.
Throws:
java.io.IOException


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.