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
    void add​(de.otto.synapse.messagestore.MessageStoreEntry entry)
    Deprecated.
    Unsupported operation.
    void close()  
    java.util.Set<java.lang.String> getChannelNames()  
    com.google.common.collect.ImmutableSet<de.otto.synapse.messagestore.Index> getIndexes()  
    de.otto.synapse.channel.ChannelPosition getLatestChannelPosition()  
    de.otto.synapse.channel.ChannelPosition getLatestChannelPosition​(java.lang.String channelName)  
    java.time.Instant getSnapshotTimestamp()  
    boolean isCompacting()  
    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, wait

    Methods 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:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface de.otto.synapse.messagestore.MessageStore
    • getSnapshotTimestamp

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

      public java.util.Set<java.lang.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​(java.lang.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 java.util.stream.Stream<de.otto.synapse.messagestore.MessageStoreEntry> stream()
      Specified by:
      stream in interface de.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:
      stream in interface de.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:
      add in interface de.otto.synapse.messagestore.MessageStore
      Throws:
      java.lang.UnsupportedOperationException - always
    • isCompacting

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