momento.sdk.messages.FlushCacheResponse 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 flush cache operation */
public interface FlushCacheResponse {
/** A successful flush cache operation. */
class Success implements FlushCacheResponse {}
/**
* A failed flush 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 FlushCacheResponse {
/**
* Constructs a cache flush error with a cause.
*
* @param cause the cause.
*/
public Error(SdkException cause) {
super(cause);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy