Interface EntryCopier
-
- All Known Implementing Classes:
EntryCopierImpl
public interface EntryCopier
Interface for copying entries from other bookies. The implementation should take care of selecting the order of the replicas from which we try to read, taking into account stickiness and errors. The implementation should take care of rate limiting.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EntryCopier.Batch
An interface for a batch to be copied.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntryCopier.Batch
newBatch(long ledgerId, LedgerMetadata metadata)
Start copying a new batch.
-
-
-
Method Detail
-
newBatch
EntryCopier.Batch newBatch(long ledgerId, LedgerMetadata metadata) throws java.io.IOException
Start copying a new batch. In general, there should be a batch per ledger.- Throws:
java.io.IOException
-
-