Example #1
0
  @Override
  public void endLog(boolean success) throws IOException {
    List<LogEntry> filtered = interceptor.apply(logEntries);

    delegate.startLog();
    for (LogEntry entry : filtered) {
      entry.accept(delegate);
    }
    delegate.endLog(success);

    logEntries.clear();
  }
Example #2
0
 @Override
 public void endLog(boolean success) throws IOException {
   delegate.endLog(true);
 }
Example #3
0
 @Override
 public void commandEntry(LogEntryCommand commandEntry) throws IOException {
   delegate.commandEntry(commandEntry);
 }
Example #4
0
 @Override
 public void onePhaseCommitEntry(OnePhaseCommit onePhaseCommitEntry) throws IOException {
   delegate.onePhaseCommitEntry(onePhaseCommitEntry);
 }
Example #5
0
 @Override
 public void startEntry(LogEntryStart startEntry) throws IOException {
   delegate.startEntry(startEntry);
 }
Example #6
0
 @Override
 public void startLog() {
   delegate.startLog();
 }