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

momento.sdk.messages.FlushCacheResponse Maven / Gradle / Ivy

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