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