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