Class ReplayingListener<T>
- java.lang.Object
-
- de.unistuttgart.isw.sfsc.commonjava.util.ReplayingListener<T>
-
- All Implemented Interfaces:
Consumer<StoreEvent<T>>
public final class ReplayingListener<T> extends Object implements Consumer<StoreEvent<T>>
-
-
Constructor Summary
Constructors Constructor Description ReplayingListener(Consumer<StoreEvent<T>> listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(StoreEvent<T> storeEvent)voidprepend(Set<T> prepopulationSnapshot)voidprependEvents(Set<StoreEvent<T>> prepopulationSnapshot)voidstart()
-
-
-
Constructor Detail
-
ReplayingListener
public ReplayingListener(Consumer<StoreEvent<T>> listener)
-
-
Method Detail
-
prependEvents
public void prependEvents(Set<StoreEvent<T>> prepopulationSnapshot)
-
start
public void start()
-
accept
public void accept(StoreEvent<T> storeEvent)
-
-