new ReadLastConfirmedAndEntryCallbackWithNotification(lastAddConfirmed, this, ctx); boolean callbackImmediately = setMetadataNotification(callback); handleCache.asyncReadLastConfirmedAndEntry( currentLH, nextReadAheadPosition.getEntryId(),
@Test(timeout = 60000, expected = BKException.BKUnexpectedConditionException.class) public void testReadLastConfirmedAndEntryWithoutOpeningLedger() throws Exception { LedgerDescriptor desc = new LedgerDescriptor(9999, 9999, false); LedgerHandleCache cache = LedgerHandleCache.newBuilder().bkc(bkc).conf(conf).build(); // read entries FutureUtils.bkResult(cache.asyncReadLastConfirmedAndEntry(desc, 1L, 200L, false)); }