@Override public CompletableFuture<LastConfirmedAndEntry> readLastAddConfirmedAndEntryAsync(long entryId, long timeOutInMillis, boolean parallel) { return readHandle.readLastAddConfirmedAndEntryAsync(entryId, timeOutInMillis, parallel); }
/** * Asynchronous read specific entry and the latest last add confirmed. * * @param entryId * next entry id to read * @param timeOutInMillis * timeout period to wait for the entry id to be available (for long poll only) * if timeout for get the entry, it will return null entry. * @param parallel * whether to issue the long poll reads in parallel * @return the result of the operation * @see #readLastAddConfirmedAndEntry(long, long, boolean) */ default LastConfirmedAndEntry readLastAddConfirmedAndEntry(long entryId, long timeOutInMillis, boolean parallel) throws BKException, InterruptedException { return FutureUtils.<LastConfirmedAndEntry, BKException>result( readLastAddConfirmedAndEntryAsync(entryId, timeOutInMillis, parallel), BKException.HANDLER); }