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 IRemoteHttpCacheClient
attributes
- public ICacheElement get(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
get
in interface ICacheService
cacheName
- key
- java.io.IOException
public ICacheElement get(java.lang.String cacheName, java.io.Serializable key, long requesterId) throws java.io.IOException
get
in interface IRemoteCacheService
cacheName
- key
- requesterId
- java.io.IOException
public java.util.Map getMatching(java.lang.String cacheName, java.lang.String pattern) throws java.io.IOException
getMatching
in interface ICacheService
cacheName
- pattern
- java.io.IOException
public java.util.Map getMatching(java.lang.String cacheName, java.lang.String pattern, long requesterId) throws java.io.IOException
getMatching
in interface IRemoteCacheService
cacheName
- pattern
- requesterId
- java.io.IOException
public java.util.Map getMultiple(java.lang.String cacheName, java.util.Set keys) throws java.io.IOException
getMultiple
in interface ICacheService
cacheName
- keys
- java.io.IOException
public java.util.Map getMultiple(java.lang.String cacheName, java.util.Set keys, long requesterId) throws java.io.IOException
getMultiple
in interface IRemoteCacheService
cacheName
- keys
- requesterId
- java.io.IOException
public void remove(java.lang.String cacheName, java.io.Serializable key) throws java.io.IOException
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
remove
in interface IRemoteCacheService
cacheName
- key
- requesterId
- java.io.IOException
public void removeAll(java.lang.String cacheName) throws java.io.IOException
removeAll
in interface ICacheService
cacheName
- java.io.IOException
public void removeAll(java.lang.String cacheName, long requesterId) throws java.io.IOException
removeAll
in interface IRemoteCacheService
cacheName
- requesterId
- java.io.IOException
public void update(ICacheElement item) throws java.io.IOException
update
in interface ICacheService
item
- java.io.IOException
public void update(ICacheElement cacheElement, long requesterId) throws java.io.IOException
update
in interface IRemoteCacheService
cacheElement
- requesterId
- java.io.IOException
public void dispose(java.lang.String cacheName) throws java.io.IOException
dispose
in interface ICacheService
cacheName
- java.io.IOException
public void release() throws java.io.IOException
release
in interface ICacheService
java.io.IOException
public java.util.Set getGroupKeys(java.lang.String cacheName, java.lang.String groupName) throws java.io.IOException
getGroupKeys
in interface IRemoteCacheService
cacheName
- groupName
- java.io.IOException
java.rmi.RemoteException
public boolean isAlive() throws java.io.IOException
isAlive
in interface IRemoteHttpCacheClient
java.io.IOException
public 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.