|
||||||||||
| 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
public class LateralTCPService
A lateral cache service implementation. Does not implement getGroupKey
| Constructor Summary | |
|---|---|
LateralTCPService(ITCPLateralCacheAttributes 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 cacheName)
Will close the connection. |
java.io.Serializable |
get(java.lang.String key)
The service does not get via this method, so this return null. |
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 |
protected long |
getListenerId()
|
ITCPLateralCacheAttributes |
getTcpLateralCacheAttributes()
|
static void |
main(java.lang.String[] args)
|
void |
release()
Frees all caches. |
void |
remove(java.lang.String cacheName,
java.io.Serializable key)
Uses the default listener id and calls the next remove method. |
void |
remove(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
Wraps the key in a LateralElementDescriptor. |
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. |
protected void |
setListenerId(long listernId)
|
void |
setTcpLateralCacheAttributes(ITCPLateralCacheAttributes tcpLateralCacheAttributes)
|
void |
update(ICacheElement item)
Puts a cache item to the cache. |
void |
update(ICacheElement item,
long requesterId)
If put is allowed, we will issue a put. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LateralTCPService(ITCPLateralCacheAttributes lca)
throws java.io.IOException
lca - ITCPLateralCacheAttributes
java.io.IOException| Method Detail |
|---|
public void update(ICacheElement item)
throws java.io.IOException
ICacheService
update in interface ICacheServiceitem -
java.io.IOException
public void update(ICacheElement item,
long requesterId)
throws java.io.IOException
update in interface ILateralCacheServicejava.io.IOExceptionILateralCacheService.update(org.apache.jcs.engine.behavior.ICacheElement,
long)
public void remove(java.lang.String cacheName,
java.io.Serializable key)
throws java.io.IOException
remove in interface ICacheServicejava.io.IOExceptionICacheService.remove(java.lang.String,
java.io.Serializable)
public void remove(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
throws java.io.IOException
remove in interface ILateralCacheServicejava.io.IOExceptionILateralCacheService.remove(java.lang.String,
java.io.Serializable, long)
public void release()
throws java.io.IOException
ICacheService
release in interface ICacheServicejava.io.IOException
public void dispose(java.lang.String cacheName)
throws java.io.IOException
dispose in interface ICacheServicecacheName -
java.io.IOException
public java.io.Serializable get(java.lang.String key)
throws java.io.IOException
key -
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 ILateralCacheServicecacheName - group -
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,
long requesterId)
throws java.io.IOException
ILateralCacheService
removeAll in interface ILateralCacheServicejava.io.IOExceptionpublic 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 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.IOExceptionprotected void setListenerId(long listernId)
listernId - The listernId to set.protected long getListenerId()
public void setTcpLateralCacheAttributes(ITCPLateralCacheAttributes tcpLateralCacheAttributes)
tcpLateralCacheAttributes - The tcpLateralCacheAttributes to set.public ITCPLateralCacheAttributes getTcpLateralCacheAttributes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||