Package de.otto.synapse.subscription
Interface SnapshotProvider
-
- All Known Implementing Classes:
StateRepositorySnapshotProvider
public interface SnapshotProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringchannelName()The name of the subscribable messaging channel.java.util.stream.Stream<? extends Message<?>>snapshot(java.lang.String entityId)Returns a stream containing all Messages required to get the most current snapshot for the entity that is identified by the given entityId
-
-
-
Method Detail
-
channelName
java.lang.String channelName()
The name of the subscribable messaging channel.- Returns:
- channel name
-
snapshot
java.util.stream.Stream<? extends Message<?>> snapshot(java.lang.String entityId)
Returns a stream containing all Messages required to get the most current snapshot for the entity that is identified by the given entityId- Parameters:
entityId- the identifier used to select a single entity.- Returns:
- Stream of messages
-
-