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.
    • 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