Esempio n. 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();
  }
Esempio n. 2
0
 @Override
 public void endLog(boolean success) throws IOException {
   delegate.endLog(true);
 }
Esempio n. 3
0
 @Override
 public void commandEntry(LogEntryCommand commandEntry) throws IOException {
   delegate.commandEntry(commandEntry);
 }
Esempio n. 4
0
 @Override
 public void onePhaseCommitEntry(OnePhaseCommit onePhaseCommitEntry) throws IOException {
   delegate.onePhaseCommitEntry(onePhaseCommitEntry);
 }
Esempio n. 5
0
 @Override
 public void startEntry(LogEntryStart startEntry) throws IOException {
   delegate.startEntry(startEntry);
 }
Esempio n. 6
0
 @Override
 public void startLog() {
   delegate.startLog();
 }