@Override public void onSuccess(DLSN value){
  if (value.getLogSegmentSequenceNo() != currentLogSegmentSeqNo) {
    LOG.error("Ledger Seq No: {}, Expected: {}",value.getLogSegmentSequenceNo(),currentLogSegmentSeqNo);
    errorsFound.set(true);
  }
  if (verifyEntryId && value.getEntryId() != currentEntryId) {
    LOG.error("EntryId: {}, Expected: {}",value.getEntryId(),currentEntryId);
    errorsFound.set(true);
  }
  syncLatch.countDown();
}

@ Override public void onSuccess ( DLSN value ) { if ( value . getLogSegmentSequenceNo ( ) != currentLogSegmentSeqNo ) { LOG . error ( "Ledger Seq No: {}, Expected: {}" , value . getLogSegmentSequenceNo ( ) , currentLogSegmentSeqNo ) ; errorsFound . set ( true ) ; } if ( verifyEntryId && value . getEntryId ( ) != currentEntryId ) { LOG . error ( "EntryId: {}, Expected: {}" , value . getEntryId ( ) , currentEntryId ) ; errorsFound . set ( true ) ; } syncLatch . countDown ( ) ; }
invoked if the computation completes successfully
