public class RemoteCacheRequest<K,V> extends Object implements Serializable
Rather than creating sub object types, I created on object that has values for all types of requests.
Constructor and Description |
---|
RemoteCacheRequest() |
Modifier and Type | Method and Description |
---|---|
ICacheElement<K,V> |
getCacheElement() |
String |
getCacheName() |
K |
getKey() |
Set<K> |
getKeySet() |
String |
getPattern() |
long |
getRequesterId() |
RemoteRequestType |
getRequestType() |
void |
setCacheElement(ICacheElement<K,V> cacheElement) |
void |
setCacheName(String cacheName) |
void |
setKey(K key) |
void |
setKeySet(Set<K> keySet) |
void |
setPattern(String pattern) |
void |
setRequesterId(long requesterId) |
void |
setRequestType(RemoteRequestType requestType) |
String |
toString() |
public RemoteCacheRequest()
public void setRequestType(RemoteRequestType requestType)
requestType
- the requestType to setpublic RemoteRequestType getRequestType()
public void setCacheName(String cacheName)
cacheName
- the cacheName to setpublic String getCacheName()
public void setPattern(String pattern)
pattern
- the pattern to setpublic String getPattern()
public void setCacheElement(ICacheElement<K,V> cacheElement)
cacheElement
- the cacheElement to setpublic ICacheElement<K,V> getCacheElement()
public void setRequesterId(long requesterId)
requesterId
- the requesterId to setpublic long getRequesterId()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.