|
|||||||||||
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
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 cache)
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)
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. |
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)
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 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 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 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 ICacheService
cacheName
- key
-
java.io.IOException
public java.util.Set getGroupKeys(java.lang.String cacheName, java.lang.String group)
getGroupKeys
in interface ILateralCacheService
cacheName
- group
-
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 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 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 ICacheObserver
obj
- 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 ICacheObserver
cacheName
- obj
- existing subscriber.
java.io.IOException
public void removeCacheListener(ICacheListener obj) throws java.io.IOException
ICacheObserver
removeCacheListener
in interface ICacheObserver
obj
- existing subscriber.
java.io.IOException
protected 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 |