public CompletableFuture<ReadResponse> read(UUID stream, Range<Long> offsetRange) { return router.sendMessageAndGetCompletable( CorfuMsgType.READ_REQUEST.payloadMsg(new ReadRequest(offsetRange, stream))); }
/** * Asynchronously read from the logging unit. * * @param address The address to read from. * @return A CompletableFuture which will complete with a ReadResult once the read completes. */ public CompletableFuture<ReadResponse> read(long address) { return router.sendMessageAndGetCompletable( CorfuMsgType.READ_REQUEST.payloadMsg(new ReadRequest(address))); }