Interface SnapshotReplication
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
NoneSnapshotReplication,StateReplication
public interface SnapshotReplication extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconsume(Consumer<SnapshotChunk> consumer)Registers an consumer, which should be called when an snapshot chunk was received.voidreplicate(SnapshotChunk snapshot)Replicates the given snapshot chunk.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
replicate
void replicate(SnapshotChunk snapshot)
Replicates the given snapshot chunk.- Parameters:
snapshot- the chunk to replicate
-
consume
void consume(Consumer<SnapshotChunk> consumer)
Registers an consumer, which should be called when an snapshot chunk was received.- Parameters:
consumer- the consumer which should be called
-
-