momento.sdk.messages.DeleteCacheResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Java client SDK for Momento Serverless Cache
package momento.sdk.messages;
import momento.sdk.exceptions.SdkException;
/** Response for a delete cache operation */
public interface DeleteCacheResponse {
/** A successful delete cache operation. */
class Success implements DeleteCacheResponse {}
/**
* A failed delete cache operation. The response itself is an exception, so it can be directly
* thrown, or the cause of the error can be retrieved with {@link #getCause()}. The message is a
* copy of the message of the cause.
*/
class Error extends SdkException implements DeleteCacheResponse {
/**
* Constructs a delete cache error with a cause.
*
* @param cause the cause.
*/
public Error(SdkException cause) {
super(cause);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy