All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.spy.memcached.ops.OperationStatus Maven / Gradle / Ivy

There is a newer version: 2.8.4
Show newest version
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