public static class AsyncAppender.Builder<B extends AsyncAppender.Builder<B>> extends AbstractFilterable.Builder<B> implements Builder<AsyncAppender>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AsyncAppender |
build()
Builds the object after all configuration has been set.
|
AsyncAppender.Builder |
setAppenderRefs(AppenderRef[] appenderRefs) |
AsyncAppender.Builder |
setBlocking(boolean blocking) |
AsyncAppender.Builder |
setBlockingQueueFactory(BlockingQueueFactory<LogEvent> blockingQueueFactory) |
AsyncAppender.Builder |
setBufferSize(int bufferSize) |
AsyncAppender.Builder |
setConfiguration(Configuration configuration) |
AsyncAppender.Builder |
setErrorRef(String errorRef) |
AsyncAppender.Builder |
setIgnoreExceptions(boolean ignoreExceptions) |
AsyncAppender.Builder |
setIncludeLocation(boolean includeLocation) |
AsyncAppender.Builder |
setName(String name) |
AsyncAppender.Builder |
setShutdownTimeout(long shutdownTimeout) |
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
public Builder()
public AsyncAppender.Builder setAppenderRefs(AppenderRef[] appenderRefs)
public AsyncAppender.Builder setErrorRef(String errorRef)
public AsyncAppender.Builder setBlocking(boolean blocking)
public AsyncAppender.Builder setShutdownTimeout(long shutdownTimeout)
public AsyncAppender.Builder setBufferSize(int bufferSize)
public AsyncAppender.Builder setName(String name)
public AsyncAppender.Builder setIncludeLocation(boolean includeLocation)
public AsyncAppender.Builder setConfiguration(Configuration configuration)
public AsyncAppender.Builder setIgnoreExceptions(boolean ignoreExceptions)
public AsyncAppender.Builder setBlockingQueueFactory(BlockingQueueFactory<LogEvent> blockingQueueFactory)
public AsyncAppender build()
Builder
build
in interface Builder<AsyncAppender>
Copyright © 1999-2021 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.