Package de.otto.synapse.messagestore.aws
Class S3SnapshotMessageStore
java.lang.Object
de.otto.synapse.messagestore.aws.S3SnapshotMessageStore
- All Implemented Interfaces:
de.otto.synapse.messagestore.MessageStore,de.otto.synapse.messagestore.SnapshotMessageStore,java.lang.AutoCloseable
@NotThreadSafe
public class S3SnapshotMessageStore
extends java.lang.Object
implements de.otto.synapse.messagestore.SnapshotMessageStore
-
Constructor Summary
Constructors Constructor Description S3SnapshotMessageStore(java.lang.String channelName, SnapshotReadService snapshotReadService, org.springframework.context.ApplicationEventPublisher eventPublisher) -
Method Summary
Modifier and Type Method Description voidadd(de.otto.synapse.messagestore.MessageStoreEntry entry)Deprecated.Unsupported operation.voidclose()java.util.Set<java.lang.String>getChannelNames()com.google.common.collect.ImmutableSet<de.otto.synapse.messagestore.Index>getIndexes()de.otto.synapse.channel.ChannelPositiongetLatestChannelPosition()de.otto.synapse.channel.ChannelPositiongetLatestChannelPosition(java.lang.String channelName)java.time.InstantgetSnapshotTimestamp()booleanisCompacting()java.util.stream.Stream<de.otto.synapse.messagestore.MessageStoreEntry>stream()java.util.stream.Stream<de.otto.synapse.messagestore.MessageStoreEntry>stream(de.otto.synapse.messagestore.Index index, java.lang.String value)Deprecated.Unsupported operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.otto.synapse.messagestore.MessageStore
size
-
Constructor Details
-
S3SnapshotMessageStore
public S3SnapshotMessageStore(@Nonnull java.lang.String channelName, @Nonnull SnapshotReadService snapshotReadService, @Nullable org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacede.otto.synapse.messagestore.MessageStore
-
getSnapshotTimestamp
public java.time.Instant getSnapshotTimestamp()- Specified by:
getSnapshotTimestampin interfacede.otto.synapse.messagestore.SnapshotMessageStore
-
getChannelNames
public java.util.Set<java.lang.String> getChannelNames()- Specified by:
getChannelNamesin interfacede.otto.synapse.messagestore.MessageStore
-
getIndexes
public com.google.common.collect.ImmutableSet<de.otto.synapse.messagestore.Index> getIndexes()- Specified by:
getIndexesin interfacede.otto.synapse.messagestore.MessageStore
-
getLatestChannelPosition
public de.otto.synapse.channel.ChannelPosition getLatestChannelPosition(java.lang.String channelName)- Specified by:
getLatestChannelPositionin interfacede.otto.synapse.messagestore.MessageStore
-
getLatestChannelPosition
public de.otto.synapse.channel.ChannelPosition getLatestChannelPosition()- Specified by:
getLatestChannelPositionin interfacede.otto.synapse.messagestore.MessageStore
-
stream
public java.util.stream.Stream<de.otto.synapse.messagestore.MessageStoreEntry> stream()- Specified by:
streamin interfacede.otto.synapse.messagestore.MessageStore
-
stream
public java.util.stream.Stream<de.otto.synapse.messagestore.MessageStoreEntry> stream(de.otto.synapse.messagestore.Index index, java.lang.String value)Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the message store unmodified.- Specified by:
streamin interfacede.otto.synapse.messagestore.MessageStore- Throws:
java.lang.UnsupportedOperationException- always
-
add
@Deprecated public void add(@Nonnull de.otto.synapse.messagestore.MessageStoreEntry entry)Deprecated.Unsupported operation.Guaranteed to throw an exception and leave the message store unmodified.- Specified by:
addin interfacede.otto.synapse.messagestore.MessageStore- Throws:
java.lang.UnsupportedOperationException- always
-
isCompacting
public boolean isCompacting()- Specified by:
isCompactingin interfacede.otto.synapse.messagestore.MessageStore
-