Class OperationStatus
java.lang.Object
net.spy.memcached.ops.OperationStatus
- Direct Known Subclasses:
CancelledOperationStatus, CASOperationStatus, TimedOutOperationStatus
Status indicator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Stringprivate final StatusCode -
Constructor Summary
ConstructorsConstructorDescriptionOperationStatus(boolean success, String msg) OperationStatus(boolean success, String msg, StatusCode code) -
Method Summary
Modifier and TypeMethodDescriptionGet the message included as part of this status.Get the status code associated with the operation status.booleanDoes this status indicate success?toString()
-
Field Details
-
isSuccess
private final boolean isSuccess -
message
-
statusCode
-
-
Constructor Details
-
OperationStatus
-
OperationStatus
-
-
Method Details
-
isSuccess
public boolean isSuccess()Does this status indicate success? -
getMessage
Get the message included as part of this status. -
getStatusCode
Get the status code associated with the operation status. -
toString
-