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

com.codepoetics.fluvius.api.scratchpad.ScratchpadStorage Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package com.codepoetics.fluvius.api.scratchpad;

/**
 * Used to provide write-only access to a Scratchpad's storage for a KeyValue.
 */
public interface ScratchpadStorage {

  /**
   * Write this key/value pair into a Scratchpad's storage.
   *
   * @param key   The Key to write.
   * @param value The value to write.
   * @param    The type of the key/value pair to write.
   */
   void storeSuccess(Key key, T value);

  /**
   * Write a "failure" reason into a Scratchpad's storage.
   *
   * @param key The Key to write.
   * @param reason The failure reason to write.
   */
  void storeFailure(Key key, Throwable reason);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy