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

de.otto.synapse.subscription.SnapshotProvider Maven / Gradle / Ivy

Go to download

A library used at otto.de to implement Spring Boot based event-sourcing microservices.

The newest version!
package de.otto.synapse.subscription;

import de.otto.synapse.message.Message;

import java.util.stream.Stream;

public interface SnapshotProvider {

    /**
     * The name of the subscribable messaging channel.
     *
     * @return channel name
     */
    String channelName();

    /**
     * Returns a stream containing all Messages required to get
     * the most current snapshot for the entity that is identified
     * by the given entityId
     *
     * @param entityId the identifier used to select a single entity.
     * @return Stream of messages
     */
    Stream> snapshot(final String entityId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy