Class PendingReadOp.SingleLedgerEntryRequest

    • Constructor Detail

      • SingleLedgerEntryRequest

        SingleLedgerEntryRequest​(java.util.List<BookieId> ensemble,
                                 long lId,
                                 long eId)
    • Method Detail

      • complete

        boolean complete​(int bookieIndex,
                         BookieId host,
                         io.netty.buffer.ByteBuf buffer)
        Complete the read request from host.
        Parameters:
        bookieIndex - bookie index
        host - host that respond the read
        buffer - the data buffer
        Returns:
        return true if we managed to complete the entry; otherwise return false if the read entry is not complete or it is already completed before