@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 startLog() { delegate.startLog(); }