net.spy.memcached.ops.OperationStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spymemcached Show documentation
Show all versions of spymemcached Show documentation
A client library for memcached.
package net.spy.memcached.ops;
/**
* Status indicator.
*/
public class OperationStatus {
private final boolean isSuccess;
private final String message;
public OperationStatus(boolean success, String msg) {
super();
isSuccess = success;
message = msg;
}
/**
* Does this status indicate success?
*/
public boolean isSuccess() {
return isSuccess;
}
/**
* Get the message included as part of this status.
*/
public String getMessage() {
return message;
}
@Override
public String toString() {
return "{OperationStatus success=" + isSuccess + ": " + message + "}";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy