Class RemoteCacheResponse<T>
java.lang.Object
org.apache.commons.jcs3.auxiliary.remote.value.RemoteCacheResponse<T>
- All Implemented Interfaces:
Serializable
This is the response wrapper. The servlet wraps all different type of responses in one of these
objects.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setErrorMessage
(String errorMessage) void
setPayload
(T payload) void
setSuccess
(boolean success) toString()
-
Constructor Details
-
RemoteCacheResponse
public RemoteCacheResponse()
-
-
Method Details
-
setSuccess
- Parameters:
success
- the success to set
-
isSuccess
- Returns:
- the success
-
setErrorMessage
- Parameters:
errorMessage
- the errorMessage to set
-
getErrorMessage
- Returns:
- the errorMessage
-
setPayload
- Parameters:
payload
- the payload to set
-
getPayload
- Returns:
- the payload
-
toString
-