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 ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn interface for a batch to be copied. -
Method Summary
Modifier and TypeMethodDescriptionnewBatch(long ledgerId, LedgerMetadata metadata) Start copying a new batch.
-
Method Details
-
newBatch
Start copying a new batch. In general, there should be a batch per ledger.- Throws:
IOException
-