Class AsyncAppender.Builder
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.AsyncAppender.Builder
-
- All Implemented Interfaces:
Builder<AsyncAppender>
- Enclosing class:
- AsyncAppender
public static class AsyncAppender.Builder extends java.lang.Object implements Builder<AsyncAppender>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.lang.String errorRef)
AsyncAppender.Builder
setFilter(Filter filter)
AsyncAppender.Builder
setIgnoreExceptions(boolean ignoreExceptions)
AsyncAppender.Builder
setIncludeLocation(boolean includeLocation)
AsyncAppender.Builder
setName(java.lang.String name)
AsyncAppender.Builder
setShutdownTimeout(long shutdownTimeout)
-
-
-
Method Detail
-
setAppenderRefs
public AsyncAppender.Builder setAppenderRefs(AppenderRef[] appenderRefs)
-
setErrorRef
public AsyncAppender.Builder setErrorRef(java.lang.String errorRef)
-
setBlocking
public AsyncAppender.Builder setBlocking(boolean blocking)
-
setShutdownTimeout
public AsyncAppender.Builder setShutdownTimeout(long shutdownTimeout)
-
setBufferSize
public AsyncAppender.Builder setBufferSize(int bufferSize)
-
setName
public AsyncAppender.Builder setName(java.lang.String name)
-
setIncludeLocation
public AsyncAppender.Builder setIncludeLocation(boolean includeLocation)
-
setFilter
public AsyncAppender.Builder setFilter(Filter filter)
-
setConfiguration
public AsyncAppender.Builder setConfiguration(Configuration configuration)
-
setIgnoreExceptions
public AsyncAppender.Builder setIgnoreExceptions(boolean ignoreExceptions)
-
setBlockingQueueFactory
public AsyncAppender.Builder setBlockingQueueFactory(BlockingQueueFactory<LogEvent> blockingQueueFactory)
-
build
public AsyncAppender build()
Description copied from interface:Builder
Builds the object after all configuration has been set. This will use default values for any unspecified attributes for the object.- Specified by:
build
in interfaceBuilder<AsyncAppender>
- Returns:
- the configured instance.
-
-