コード例 #1
0
 public CompletableFuture<ReadResponse> read(UUID stream, Range<Long> offsetRange) {
   return router.sendMessageAndGetCompletable(
       CorfuMsgType.READ_REQUEST.payloadMsg(new ReadRequest(offsetRange, stream)));
 }
コード例 #2
0
 /**
  * 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)));
 }