|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jcs.auxiliary.lateral.socket.tcp.LateralTCPService
A lateral cache service implementation. Does not implement getGroupKey
| Field Summary | |
private ILateralCacheAttributes |
ilca
|
private static org.apache.commons.logging.Log |
log
|
private LateralTCPSender |
sender
|
| Constructor Summary | |
LateralTCPService(ILateralCacheAttributes lca)
Constructor for the LateralTCPService 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. |
java.io.Serializable |
get(java.lang.String key)
|
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,
byte 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,
byte 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,
byte 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 |
| Field Detail |
private static final org.apache.commons.logging.Log log
private ILateralCacheAttributes ilca
private LateralTCPSender sender
| Constructor Detail |
public LateralTCPService(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 ICacheServicejava.io.IOException
public void update(ICacheElement item,
byte requesterId)
throws java.io.IOException
ILateralCacheService
update in interface ILateralCacheServicejava.io.IOException
public void remove(java.lang.String cacheName,
java.io.Serializable key)
throws java.io.IOException
ICacheService
remove in interface ICacheServicejava.io.IOException
public void remove(java.lang.String cacheName,
java.io.Serializable key,
byte requesterId)
throws java.io.IOException
ILateralCacheService
remove in interface ILateralCacheServicejava.io.IOException
public void release()
throws java.io.IOException
ICacheService
release in interface ICacheServicejava.io.IOException
public void dispose(java.lang.String cache)
throws java.io.IOException
dispose in interface ICacheServicejava.io.IOException
public java.io.Serializable get(java.lang.String key)
throws java.io.IOException
java.io.IOException
public ICacheElement get(java.lang.String cacheName,
java.io.Serializable key)
throws java.io.IOException
ICacheService
get in interface ICacheServicejava.io.IOException
public java.util.Set getGroupKeys(java.lang.String cacheName,
java.lang.String group)
getGroupKeys in interface ILateralCacheService
public void removeAll(java.lang.String cacheName)
throws java.io.IOException
ICacheService
removeAll in interface ICacheServicejava.io.IOException
public void removeAll(java.lang.String cacheName,
byte requesterId)
throws java.io.IOException
ILateralCacheService
removeAll in interface ILateralCacheServicejava.io.IOExceptionpublic static void main(java.lang.String[] args)
public void addCacheListener(java.lang.String cacheName,
ICacheListener obj)
throws java.io.IOException
ICacheObserver
addCacheListener in interface ICacheObservercacheName - the specified cache.obj - object to notify for cache changes.
java.io.IOException
public void addCacheListener(ICacheListener obj)
throws java.io.IOException
ICacheObserver
addCacheListener in interface ICacheObserverobj - object to notify for all cache changes.
java.io.IOException
public void removeCacheListener(java.lang.String cacheName,
ICacheListener obj)
throws java.io.IOException
ICacheObserver
removeCacheListener in interface ICacheObserverobj - existing subscriber.
java.io.IOException
public void removeCacheListener(ICacheListener obj)
throws java.io.IOException
ICacheObserver
removeCacheListener in interface ICacheObserverobj - existing subscriber.
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||