public class AsyncLogHandler extends Handler
LogFileHandler
, but ensures that all
requests are dispatched on a separate thread and do not block the caller.Modifier | Constructor and Description |
---|---|
|
AsyncLogHandler(LogFileHandler delegate) |
protected |
AsyncLogHandler(java.util.function.Supplier<Executor> performLoggingExecutor,
Handler delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
publish(LogRecord record) |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
public AsyncLogHandler(LogFileHandler delegate)
protected AsyncLogHandler(java.util.function.Supplier<Executor> performLoggingExecutor, Handler delegate)
public void close() throws SecurityException
close
in class Handler
SecurityException