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

com.codepoetics.fluvius.api.history.FlowEventStore Maven / Gradle / Ivy

package com.codepoetics.fluvius.api.history;

import java.util.List;
import java.util.UUID;

/**
 * A store of flow events.
 *
 * @param  The type to which the flow events' data is serialised.
 */
public interface FlowEventStore {

  /**
   * Store a flow event.
   *
   * @param event The event to store.
   */
  void storeEvent(FlowEvent event);

  /**
   * Retrieve all of the events associated with a particular flow.
   *
   * @param flowId The id of the flow to retrieve events for.
   * @return The events stored for the requested flow.
   */
  List> retrieveEvents(UUID flowId);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy