|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.lateral.javagroups.LateralJGService
A lateral cache service implementation.
Constructor Summary | |
LateralJGService(ILateralCacheAttributes lca)
Constructor for the LateralJGService object |
Method Summary | |
void |
addCacheListener(ICacheListener obj)
Subscribes to all caches. |
void |
addCacheListener(java.lang.String cacheName,
ICacheListener obj)
Subscribes to the specified cache. |
void |
dispose(java.lang.String cache)
Will close the connection. |
ICacheElement |
get(java.lang.String cacheName,
java.io.Serializable key)
Returns a cache bean from the specified cache; or null if the key does not exist. |
java.util.Set |
getGroupKeys(java.lang.String cacheName,
java.lang.String group)
Gets the set of keys of objects currently in the group throws UnsupportedOperationException |
static void |
main(java.lang.String[] args)
|
void |
release()
Frees all caches. |
void |
remove(java.lang.String cacheName,
java.io.Serializable key)
Removes the given key from the specified cache. |
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)
Remove all keys from the sepcified cache. |
void |
removeAll(java.lang.String cacheName,
long requesterId)
Remove all keys from the sepcified cache. |
void |
removeCacheListener(ICacheListener obj)
Unsubscribes from all caches. |
void |
removeCacheListener(java.lang.String cacheName,
ICacheListener obj)
Unsubscribes from the specified cache. |
void |
update(ICacheElement item)
Puts a cache item to the cache. |
void |
update(ICacheElement item,
long requesterId)
Puts a cache item to the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LateralJGService(ILateralCacheAttributes lca) throws java.io.IOException
lca
-
java.io.IOException
Method Detail |
public void update(ICacheElement item) throws java.io.IOException
ICacheService
update
in interface ICacheService
item
-
java.io.IOException
public void update(ICacheElement item, long requesterId) throws java.io.IOException
ILateralCacheService
update
in interface ILateralCacheService
item
- requesterId
-
java.io.IOException
public void remove(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
ICacheService
remove
in interface ICacheService
cacheName
- key
-
java.io.IOException
public void remove(java.lang.String cacheName, java.io.Serializable key, long requesterId) throws java.io.IOException
ILateralCacheService
remove
in interface ILateralCacheService
cacheName
- key
- requesterId
-
java.io.IOException
public void release() throws java.io.IOException
ICacheService
release
in interface ICacheService
java.io.IOException
public void dispose(java.lang.String cache) throws java.io.IOException
dispose
in interface ICacheService
cache
-
java.io.IOException
public ICacheElement get(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
ICacheService
get
in interface ICacheService
cacheName
- key
-
java.io.IOException
public void removeAll(java.lang.String cacheName) throws java.io.IOException
ICacheService
removeAll
in interface ICacheService
cacheName
-
java.io.IOException
public void removeAll(java.lang.String cacheName, long requesterId) throws java.io.IOException
ILateralCacheService
removeAll
in interface ILateralCacheService
cacheName
- requesterId
-
java.io.IOException
public java.util.Set getGroupKeys(java.lang.String cacheName, java.lang.String group)
getGroupKeys
in interface ILateralCacheService
public static void main(java.lang.String[] args)
args
- public void addCacheListener(java.lang.String cacheName, ICacheListener obj) throws java.io.IOException
ICacheObserver
addCacheListener
in interface ICacheObserver
cacheName
- The feature to be added to the CacheListener attributeobj
- The feature to be added to the CacheListener attribute
java.io.IOException
public void addCacheListener(ICacheListener obj) throws java.io.IOException
ICacheObserver
addCacheListener
in interface ICacheObserver
obj
- The feature to be added to the CacheListener attribute
java.io.IOException
public void removeCacheListener(java.lang.String cacheName, ICacheListener obj) throws java.io.IOException
ICacheObserver
removeCacheListener
in interface ICacheObserver
cacheName
- obj
-
java.io.IOException
public void removeCacheListener(ICacheListener obj) throws java.io.IOException
ICacheObserver
removeCacheListener
in interface ICacheObserver
obj
-
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |