Class ReplayingListener<T>

  • All Implemented Interfaces:
    java.util.function.Consumer<StoreEvent<T>>

    public final class ReplayingListener<T>
    extends java.lang.Object
    implements java.util.function.Consumer<StoreEvent<T>>
    • Method Summary

      Modifier and Type Method Description
      void accept​(StoreEvent<T> storeEvent)  
      void prepend​(java.util.Set<T> prepopulationSnapshot)  
      void prependEvents​(java.util.Set<StoreEvent<T>> prepopulationSnapshot)  
      void start()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • ReplayingListener

        public ReplayingListener​(java.util.function.Consumer<StoreEvent<T>> listener)
    • Method Detail

      • prepend

        public void prepend​(java.util.Set<T> prepopulationSnapshot)
      • prependEvents

        public void prependEvents​(java.util.Set<StoreEvent<T>> prepopulationSnapshot)
      • start

        public void start()
      • accept

        public void accept​(StoreEvent<T> storeEvent)
        Specified by:
        accept in interface java.util.function.Consumer<T>