@Override
  public Zxid getLatestZxid() throws IOException {
    if (logFiles.isEmpty()) {
      return Zxid.ZXID_NOT_EXIST;
    }
    try (SimpleLog log = getLastLog()) {
      return log.getLatestZxid();
    }
  }
@ Override public Zxid getLatestZxid ( ) throws IOException { if ( logFiles . isEmpty ( ) ) { return Zxid . ZXID_NOT_EXIST ; } try ( SimpleLog log = getLastLog ( ) ) { return log . getLatestZxid ( ) ; } }
Gets the latest appended transaction id from the log.

@return the transaction id of the latest transaction.
or Zxid.ZXID_NOT_EXIST if the log is empty.
@throws IOException in case of IO failure