public class RemoteHttpCacheService extends AbstractRemoteCacheService
For now we assume that all clients are non-cluster clients. And listener notification is not supported.
Constructor and Description |
---|
RemoteHttpCacheService(ICompositeCacheManager cacheManager,
RemoteHttpCacheServerAttributes remoteHttpCacheServerAttributes,
ICacheEventLogger cacheEventLogger)
Create a process with a cache manager.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getExtraInfoForRequesterId(long requesterId)
This is called by the event log.
|
void |
processDispose(java.lang.String cacheName,
long requesterId)
Processes a shutdown request.
|
ICacheElement |
processGet(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
Processes a get request.
|
java.util.Map |
processGetMatching(java.lang.String cacheName,
java.lang.String pattern,
long requesterId)
Processes a get request.
|
java.util.Map |
processGetMultiple(java.lang.String cacheName,
java.util.Set keys,
long requesterId)
Processes a get request.
|
void |
processRemove(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
Processes a remove request.
|
void |
processRemoveAll(java.lang.String cacheName,
long requesterId)
Processes a removeAll request.
|
void |
processUpdate(ICacheElement item,
long requesterId)
Processes an update request.
|
void |
release()
This general method should be deprecated.
|
createICacheEvent, createICacheEvent, dispose, dispose, get, get, getCacheManager, getEventLogSourceName, getGroupKeys, getMatching, getMatching, getMultiple, getMultiple, getStats, logApplicationEvent, logICacheEvent, processGetGroupKeys, remove, remove, removeAll, removeAll, setCacheEventLogger, setCacheManager, setEventLogSourceName, update, update
public RemoteHttpCacheService(ICompositeCacheManager cacheManager, RemoteHttpCacheServerAttributes remoteHttpCacheServerAttributes, ICacheEventLogger cacheEventLogger)
cacheManager
- remoteHttpCacheServerAttributes
- cacheEventLogger
- public ICacheElement processGet(java.lang.String cacheName, java.io.Serializable key, long requesterId) throws java.io.IOException
If isAllowClusterGet is enabled we will treat this as a normal request or non-remote origins.
cacheName
- key
- requesterId
- java.io.IOException
public java.util.Map processGetMultiple(java.lang.String cacheName, java.util.Set keys, long requesterId) throws java.io.IOException
If isAllowClusterGet is enabled we will treat this as a normal request of non-remote origination.
cacheName
- keys
- requesterId
- java.io.IOException
public java.util.Map processGetMatching(java.lang.String cacheName, java.lang.String pattern, long requesterId) throws java.io.IOException
If isAllowClusterGet is enabled we will treat this as a normal request of non-remote origination.
cacheName
- pattern
- requesterId
- java.io.IOException
public void processUpdate(ICacheElement item, long requesterId) throws java.io.IOException
If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination.
item
- requesterId
- java.io.IOException
public void processRemove(java.lang.String cacheName, java.io.Serializable key, long requesterId) throws java.io.IOException
If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination.
cacheName
- key
- requesterId
- java.io.IOException
public void processRemoveAll(java.lang.String cacheName, long requesterId) throws java.io.IOException
If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination.
cacheName
- requesterId
- java.io.IOException
public void processDispose(java.lang.String cacheName, long requesterId) throws java.io.IOException
cacheName
- requesterId
- java.io.IOException
public void release() throws java.io.IOException
java.io.IOException
protected java.lang.String getExtraInfoForRequesterId(long requesterId)
getExtraInfoForRequesterId
in class AbstractRemoteCacheService
requesterId
- Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.