Class S3SnapshotMessageStore

java.lang.Object
de.otto.synapse.messagestore.aws.S3SnapshotMessageStore
All Implemented Interfaces:
de.otto.synapse.messagestore.MessageStore, de.otto.synapse.messagestore.SnapshotMessageStore, AutoCloseable

public class S3SnapshotMessageStore extends Object implements de.otto.synapse.messagestore.SnapshotMessageStore
  • Constructor Details

    • S3SnapshotMessageStore

      public S3SnapshotMessageStore(@Nonnull String channelName, @Nonnull SnapshotReadService snapshotReadService, @Nullable org.springframework.context.ApplicationEventPublisher eventPublisher)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface de.otto.synapse.messagestore.MessageStore
    • getSnapshotTimestamp

      public Instant getSnapshotTimestamp()
      Specified by:
      getSnapshotTimestamp in interface de.otto.synapse.messagestore.SnapshotMessageStore
    • getChannelNames

      public Set<String> getChannelNames()
      Specified by:
      getChannelNames in interface de.otto.synapse.messagestore.MessageStore
    • getIndexes

      public com.google.common.collect.ImmutableSet<de.otto.synapse.messagestore.Index> getIndexes()
      Specified by:
      getIndexes in interface de.otto.synapse.messagestore.MessageStore
    • getLatestChannelPosition

      public de.otto.synapse.channel.ChannelPosition getLatestChannelPosition(String channelName)
      Specified by:
      getLatestChannelPosition in interface de.otto.synapse.messagestore.MessageStore
    • getLatestChannelPosition

      public de.otto.synapse.channel.ChannelPosition getLatestChannelPosition()
      Specified by:
      getLatestChannelPosition in interface de.otto.synapse.messagestore.MessageStore
    • stream

      public Stream<de.otto.synapse.messagestore.MessageStoreEntry> stream()
      Specified by:
      stream in interface de.otto.synapse.messagestore.MessageStore
    • stream

      public Stream<de.otto.synapse.messagestore.MessageStoreEntry> stream(de.otto.synapse.messagestore.Index index, String value)
      Deprecated.
      Unsupported operation.
      Guaranteed to throw an exception and leave the message store unmodified.
      Specified by:
      stream in interface de.otto.synapse.messagestore.MessageStore
      Throws:
      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:
      add in interface de.otto.synapse.messagestore.MessageStore
      Throws:
      UnsupportedOperationException - always
    • isCompacting

      public boolean isCompacting()
      Specified by:
      isCompacting in interface de.otto.synapse.messagestore.MessageStore