@NotThreadSafe
public class SnapshotMessageStore
extends java.lang.Object
implements de.otto.synapse.messagestore.MessageStore
| Constructor and Description |
|---|
SnapshotMessageStore(java.lang.String channelName,
SnapshotReadService snapshotReadService) |
SnapshotMessageStore(java.lang.String channelName,
SnapshotReadService snapshotReadService,
org.springframework.context.ApplicationEventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
de.otto.synapse.channel.ChannelPosition |
getLatestChannelPosition() |
java.util.stream.Stream<de.otto.synapse.message.Message<java.lang.String>> |
stream() |
public SnapshotMessageStore(@Nonnull
java.lang.String channelName,
@Nonnull
SnapshotReadService snapshotReadService)
public SnapshotMessageStore(@Nonnull
java.lang.String channelName,
@Nonnull
SnapshotReadService snapshotReadService,
@Nullable
org.springframework.context.ApplicationEventPublisher eventPublisher)
public void close()
throws java.io.IOException
close in interface de.otto.synapse.messagestore.MessageStoreclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic de.otto.synapse.channel.ChannelPosition getLatestChannelPosition()
getLatestChannelPosition in interface de.otto.synapse.messagestore.MessageStorepublic java.util.stream.Stream<de.otto.synapse.message.Message<java.lang.String>> stream()
stream in interface de.otto.synapse.messagestore.MessageStore