/** * calls <i> mark(key, false) </i> * @param key a log key as described by {@link #mark(long,boolean)} * @return log key of the new mark record. * @throws InvalidLogKeyException * @throws IOException * @throws InterruptedException * @see #mark(long, boolean) */ long mark(long key) throws InvalidLogKeyException, IOException, InterruptedException { return mark(key, false); }
/** * calls <i> mark(key, false) </i> * @param key a log key as described by {@link #mark(long,boolean)} * @return log key of the new mark record. * @throws InvalidLogKeyException * @throws IOException * @throws InterruptedException * @see #mark(long, boolean) */ long mark(long key) throws InvalidLogKeyException, IOException, InterruptedException { return mark(key, false); }
/** * calls <i> mark(key, false) </i> * @param key a log key as described by {@link #mark(long,boolean)} * @return log key of the new mark record. * @throws InvalidLogKeyException * @throws IOException * @throws InterruptedException * @see #mark(long, boolean) */ long mark(long key) throws InvalidLogKeyException, IOException, InterruptedException { return mark(key, false); }
/** * Sets the LogFile marking mode. * * <p>writes an AUTOMARK control record to the log if the log * is open. * * @param automark true to indicate automatic marking. * * @return log key for the generated MARK control record. */ long setAutoMark(boolean automark) throws InvalidLogKeyException, IOException, InterruptedException, LogFileOverflowException { this.automark = automark; return mark((automark ? currentKey : activeMark), false); }
/** * Sets the LogFile marking mode. * * <p>writes an AUTOMARK control record to the log if the log * is open. * * @param automark true to indicate automatic marking. * * @return log key for the generated MARK control record. */ long setAutoMark(boolean automark) throws InvalidLogKeyException, IOException, InterruptedException, LogFileOverflowException { this.automark = automark; return mark((automark ? currentKey : activeMark), false); }
/** * Sets the LogFile marking mode. * * <p>writes an AUTOMARK control record to the log if the log * is open. * * @param automark true to indicate automatic marking. * * @return log key for the generated MARK control record. */ long setAutoMark(boolean automark) throws InvalidLogKeyException, IOException, InterruptedException, LogFileOverflowException { this.automark = automark; return mark((automark ? currentKey : activeMark), false); }
lfmgr.mark(key, force);
lfmgr.mark(key, force);