Class RemoteCacheRequestFactory
java.lang.Object
org.apache.commons.jcs3.auxiliary.remote.util.RemoteCacheRequestFactory
This creates request objects. You could write your own client and use the objects from this
 factory.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <K,V> RemoteCacheRequest<K, V> createAliveCheckRequest(long requesterId) Creates an alive check Request.static <K,V> RemoteCacheRequest<K, V> createDisposeRequest(String cacheName, long requesterId) Creates a dispose Request.static RemoteCacheRequest<String,String> createGetKeySetRequest(String cacheName, long requesterId) Creates a GetKeySet Request.static <K,V> RemoteCacheRequest<K, V> createGetMatchingRequest(String cacheName, String pattern, long requesterId) Creates a getMatching Request.static <K,V> RemoteCacheRequest<K, V> createGetMultipleRequest(String cacheName, Set<K> keys, long requesterId) Creates a getMultiple Request.static <K,V> RemoteCacheRequest<K, V> createGetRequest(String cacheName, K key, long requesterId) Creates a get Request.static <K,V> RemoteCacheRequest<K, V> createRemoveAllRequest(String cacheName, long requesterId) Creates a removeAll Request.static <K,V> RemoteCacheRequest<K, V> createRemoveRequest(String cacheName, K key, long requesterId) Creates a remove Request.static <K,V> RemoteCacheRequest<K, V> createUpdateRequest(ICacheElement<K, V> cacheElement, long requesterId) Creates an Update Request.
- 
Constructor Details- 
RemoteCacheRequestFactorypublic RemoteCacheRequestFactory()
 
- 
- 
Method Details- 
createGetRequestpublic static <K,V> RemoteCacheRequest<K,V> createGetRequest(String cacheName, K key, long requesterId) Creates a get Request.- Parameters:
- cacheName-
- key-
- requesterId-
- Returns:
- RemoteHttpCacheRequest
 
- 
createGetMatchingRequestpublic static <K,V> RemoteCacheRequest<K,V> createGetMatchingRequest(String cacheName, String pattern, long requesterId) Creates a getMatching Request.- Parameters:
- cacheName-
- pattern-
- requesterId-
- Returns:
- RemoteHttpCacheRequest
 
- 
createGetMultipleRequestpublic static <K,V> RemoteCacheRequest<K,V> createGetMultipleRequest(String cacheName, Set<K> keys, long requesterId) Creates a getMultiple Request.- Parameters:
- cacheName-
- keys-
- requesterId-
- Returns:
- RemoteHttpCacheRequest
 
- 
createRemoveRequestpublic static <K,V> RemoteCacheRequest<K,V> createRemoveRequest(String cacheName, K key, long requesterId) Creates a remove Request.- Parameters:
- cacheName-
- key-
- requesterId-
- Returns:
- RemoteHttpCacheRequest
 
- 
createGetKeySetRequestpublic static RemoteCacheRequest<String,String> createGetKeySetRequest(String cacheName, long requesterId) Creates a GetKeySet Request.- Parameters:
- cacheName-
- requesterId-
- Returns:
- RemoteHttpCacheRequest
 
- 
createRemoveAllRequestpublic static <K,V> RemoteCacheRequest<K,V> createRemoveAllRequest(String cacheName, long requesterId) Creates a removeAll Request.- Parameters:
- cacheName-
- requesterId-
- Returns:
- RemoteHttpCacheRequest
 
- 
createDisposeRequestpublic static <K,V> RemoteCacheRequest<K,V> createDisposeRequest(String cacheName, long requesterId) Creates a dispose Request.- Parameters:
- cacheName-
- requesterId-
- Returns:
- RemoteHttpCacheRequest
 
- 
createUpdateRequestpublic static <K,V> RemoteCacheRequest<K,V> createUpdateRequest(ICacheElement<K, V> cacheElement, long requesterId) Creates an Update Request.- Parameters:
- cacheElement-
- requesterId-
- Returns:
- RemoteHttpCacheRequest
 
- 
createAliveCheckRequestCreates an alive check Request.- Parameters:
- requesterId-
- Returns:
- RemoteHttpCacheRequest
 
 
-