@Test public void close_shouldCloseTheDestination() throws Exception { logger.close(); verify(destination).close(); }
@Override public void close() throws Exception { if (closeable) { destination.close(); } }
BasicOpsLogger implements OpsLogger<T> { @Override public void close() throws Exception { if (closeable) { destination.close(); } } }
BasicOpsLogger implements OpsLogger<T> { @Override public void close() throws Exception { if (closeable) { destination.close(); } } BasicOpsLogger(Clock clock, DiagnosticContextSupplier diagnosticContextSupplier, Destination<T> destination, Lock lock, Consumer<Throwable> errorHandler); private  BasicOpsLogger(Clock clock, DiagnosticContextSupplier diagnosticContextSupplier, Destination<T> destination, Lock lock, Consumer<Throwable> errorHandler, boolean closeable); }
BasicOpsLogger implements OpsLogger<T> { @Override public void close() throws Exception { if (closeable) { destination.close(); } } BasicOpsLogger(Clock clock, DiagnosticContextSupplier diagnosticContextSupplier, Destination<T> destination, Lock lock, Consumer<Throwable> errorHandler); private  BasicOpsLogger(Clock clock, DiagnosticContextSupplier diagnosticContextSupplier, Destination<T> destination, Lock lock, Consumer<Throwable> errorHandler, boolean closeable); @Override void close(); @Override void log(T message, Object... details); @Override void logThrowable(T message, Throwable cause, Object... details); @Override BasicOpsLogger<T> with(DiagnosticContextSupplier override); Clock getClock(); Destination<T> getDestination(); DiagnosticContextSupplier getDiagnosticContextSupplier(); Lock getLock(); Consumer<Throwable> getErrorHandler(); }
BasicOpsLogger implements OpsLogger<T> { @Override public void close() throws Exception { if (closeable) { destination.close(); } } BasicOpsLogger(Clock clock, DiagnosticContextSupplier diagnosticContextSupplier, Destination<T> destination, Lock lock, Consumer<Throwable> errorHandler); private  BasicOpsLogger(Clock clock, DiagnosticContextSupplier diagnosticContextSupplier, Destination<T> destination, Lock lock, Consumer<Throwable> errorHandler, boolean closeable); @Override void close(); @Override void log(T message, Object... details); @Override void logThrowable(T message, Throwable cause, Object... details); @Override BasicOpsLogger<T> with(DiagnosticContextSupplier override); Clock getClock(); Destination<T> getDestination(); DiagnosticContextSupplier getDiagnosticContextSupplier(); Lock getLock(); Consumer<Throwable> getErrorHandler();  }