Class ReplayingListener<T>
- java.lang.Object
-
- de.unistuttgart.isw.sfsc.commonjava.util.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>>
-
-
Constructor Summary
Constructors Constructor Description ReplayingListener(java.util.function.Consumer<StoreEvent<T>> listener)
-
Method Summary
Modifier and Type Method Description voidaccept(StoreEvent<T> storeEvent)voidprepend(java.util.Set<T> prepopulationSnapshot)voidprependEvents(java.util.Set<StoreEvent<T>> prepopulationSnapshot)voidstart()
-
-
-
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:
acceptin interfacejava.util.function.Consumer<T>
-
-