/** * calls Logger.mark(key, force) with <i> force </i> set to <b> true </b>. * <p>Caller is blocked until mark record is forced to disk. * @param key a log key returned by a previous call to put(). * @throws InvalidLogKeyException * @throws LogClosedException * @throws IOException * @throws InterruptedException * @see #mark(long, boolean) */ public void mark(long key) throws InvalidLogKeyException, LogClosedException, IOException, InterruptedException { mark(key, true); }
/** * calls Logger.mark(key, force) with <i> force </i> set to <b> true </b>. * <p>Caller is blocked until mark record is forced to disk. * @param key a log key returned by a previous call to put(). * @throws InvalidLogKeyException * @throws LogClosedException * @throws IOException * @throws InterruptedException * @see #mark(long, boolean) */ public void mark(long key) throws InvalidLogKeyException, LogClosedException, IOException, InterruptedException { mark(key, true); }
/** * calls Logger.mark(key, force) with <i> force </i> set to <b> true </b>. * <p>Caller is blocked until mark record is forced to disk. * @param key a log key returned by a previous call to put(). * @throws InvalidLogKeyException * @throws LogClosedException * @throws IOException * @throws InterruptedException * @see #mark(long, boolean) */ public void mark(long key) throws InvalidLogKeyException, LogClosedException, IOException, InterruptedException { mark(key, true); }
/** * calls Logger.mark(key, force) with <i> force </i> set to <b> true </b>. * <p>Caller is blocked until mark record is forced to disk. * @param key a log key returned by a previous call to put(). * @throws InvalidLogKeyException * @throws LogClosedException * @throws IOException * @throws InterruptedException * @see #mark(long, boolean) */ public void mark(long key) throws InvalidLogKeyException, LogClosedException, IOException, InterruptedException { mark(key, true); }
/** * @see org.apache.activeio.journal.Journal#setMark(org.codehaus.activemq.journal.RecordLocation, boolean) */ public void setMark(RecordLocation recordLocator, boolean force) throws InvalidRecordLocationException, IOException { try { long location = toLong(recordLocator); logger.mark(location, force); lastMark = recordLocator; } catch (InterruptedException e) { throw (InterruptedIOException) new InterruptedIOException() .initCause(e); } catch (IOException e) { throw e; } catch (InvalidLogKeyException e) { throw new InvalidRecordLocationException(e.getMessage(), e); } catch (Exception e) { throw (IOException) new IOException("Journal write failed: " + e) .initCause(e); } }