public class RemoteHttpCacheClient extends java.lang.Object implements IRemoteHttpCacheClient
| Constructor and Description |
|---|
RemoteHttpCacheClient()
For factory construction.
|
RemoteHttpCacheClient(RemoteHttpCacheAttributes attributes)
Constructs a client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(java.lang.String cacheName)
Frees the specified cache.
|
ICacheElement |
get(java.lang.String cacheName,
java.io.Serializable key)
Create a request, process, extract the payload.
|
ICacheElement |
get(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
Create a request, process, extract the payload.
|
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.
|
java.util.Map |
getMatching(java.lang.String cacheName,
java.lang.String pattern,
long requesterId)
Gets multiple items from the cache matching the pattern.
|
java.util.Map |
getMultiple(java.lang.String cacheName,
java.util.Set keys)
Gets multiple items from the cache based on the given set of keys.
|
java.util.Map |
getMultiple(java.lang.String cacheName,
java.util.Set keys,
long requesterId)
Gets multiple items from the cache based on the given set of keys.
|
IRemoteCacheDispatcher |
getRemoteDispatcher() |
RemoteHttpCacheAttributes |
getRemoteHttpCacheAttributes() |
void |
initialize(RemoteHttpCacheAttributes attributes)
The provides an extension point.
|
boolean |
isAlive()
Make and alive request.
|
protected boolean |
isInitialized() |
void |
release()
Frees the specified cache.
|
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.
|
protected void |
setInitialized(boolean initialized) |
void |
setRemoteDispatcher(IRemoteCacheDispatcher remoteDispatcher) |
void |
setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes remoteHttpCacheAttributes) |
void |
update(ICacheElement item)
Puts a cache item to the cache.
|
void |
update(ICacheElement cacheElement,
long requesterId)
Puts a cache item to the cache.
|
public RemoteHttpCacheClient()
public RemoteHttpCacheClient(RemoteHttpCacheAttributes attributes)
attributes - public void initialize(RemoteHttpCacheAttributes attributes)
initialize in interface IRemoteHttpCacheClientattributes - public ICacheElement get(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
get in interface ICacheServicecacheName - key - java.io.IOExceptionpublic ICacheElement get(java.lang.String cacheName, java.io.Serializable key, long requesterId) throws java.io.IOException
get in interface IRemoteCacheServicecacheName - key - requesterId - java.io.IOExceptionpublic java.util.Map getMatching(java.lang.String cacheName,
java.lang.String pattern)
throws java.io.IOException
getMatching in interface ICacheServicecacheName - pattern - java.io.IOExceptionpublic java.util.Map getMatching(java.lang.String cacheName,
java.lang.String pattern,
long requesterId)
throws java.io.IOException
getMatching in interface IRemoteCacheServicecacheName - pattern - requesterId - java.io.IOExceptionpublic java.util.Map getMultiple(java.lang.String cacheName,
java.util.Set keys)
throws java.io.IOException
getMultiple in interface ICacheServicecacheName - keys - java.io.IOExceptionpublic java.util.Map getMultiple(java.lang.String cacheName,
java.util.Set keys,
long requesterId)
throws java.io.IOException
getMultiple in interface IRemoteCacheServicecacheName - keys - requesterId - java.io.IOExceptionpublic void remove(java.lang.String cacheName,
java.io.Serializable key)
throws java.io.IOException
remove in interface ICacheServicecacheName - key - java.io.IOExceptionpublic void remove(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
throws java.io.IOException
remove in interface IRemoteCacheServicecacheName - key - requesterId - java.io.IOExceptionpublic void removeAll(java.lang.String cacheName)
throws java.io.IOException
removeAll in interface ICacheServicecacheName - java.io.IOExceptionpublic void removeAll(java.lang.String cacheName,
long requesterId)
throws java.io.IOException
removeAll in interface IRemoteCacheServicecacheName - requesterId - java.io.IOExceptionpublic void update(ICacheElement item) throws java.io.IOException
update in interface ICacheServiceitem - java.io.IOExceptionpublic void update(ICacheElement cacheElement, long requesterId) throws java.io.IOException
update in interface IRemoteCacheServicecacheElement - requesterId - java.io.IOExceptionpublic void dispose(java.lang.String cacheName)
throws java.io.IOException
dispose in interface ICacheServicecacheName - java.io.IOExceptionpublic void release()
throws java.io.IOException
release in interface ICacheServicejava.io.IOExceptionpublic java.util.Set getGroupKeys(java.lang.String cacheName,
java.lang.String groupName)
throws java.io.IOException
getGroupKeys in interface IRemoteCacheServicecacheName - groupName - java.io.IOExceptionjava.rmi.RemoteExceptionpublic boolean isAlive()
throws java.io.IOException
isAlive in interface IRemoteHttpCacheClientjava.io.IOExceptionpublic void setRemoteDispatcher(IRemoteCacheDispatcher remoteDispatcher)
remoteDispatcher - the remoteDispatcher to setpublic IRemoteCacheDispatcher getRemoteDispatcher()
public void setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
remoteHttpCacheAttributes - the remoteHttpCacheAttributes to setpublic RemoteHttpCacheAttributes getRemoteHttpCacheAttributes()
protected void setInitialized(boolean initialized)
initialized - the initialized to setprotected boolean isInitialized()
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.