Class NoneSnapshotReplication
- java.lang.Object
-
- io.camunda.zeebe.broker.system.partitions.impl.NoneSnapshotReplication
-
- All Implemented Interfaces:
SnapshotReplication,AutoCloseable
public final class NoneSnapshotReplication extends Object implements SnapshotReplication
-
-
Constructor Summary
Constructors Constructor Description NoneSnapshotReplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()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.
-
-
-
Method Detail
-
replicate
public void replicate(SnapshotChunk snapshot)
Description copied from interface:SnapshotReplicationReplicates the given snapshot chunk.- Specified by:
replicatein interfaceSnapshotReplication- Parameters:
snapshot- the chunk to replicate
-
consume
public void consume(Consumer<SnapshotChunk> consumer)
Description copied from interface:SnapshotReplicationRegisters an consumer, which should be called when an snapshot chunk was received.- Specified by:
consumein interfaceSnapshotReplication- Parameters:
consumer- the consumer which should be called
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-