Class NoSqlAppender.Builder<B extends NoSqlAppender.Builder<B>>
java.lang.Object
org.apache.logging.log4j.core.filter.AbstractFilterable.Builder<B>
org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B>
org.apache.logging.log4j.core.appender.nosql.NoSqlAppender.Builder<B>
- Type Parameters:
B- The type to build
- All Implemented Interfaces:
Builder<NoSqlAppender>
- Enclosing class:
NoSqlAppender
public static class NoSqlAppender.Builder<B extends NoSqlAppender.Builder<B>>
extends AbstractAppender.Builder<B>
implements Builder<NoSqlAppender>
Builds ConsoleAppender instances.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the object after all configuration has been set.setBufferSize(int bufferSize) Sets the buffer size.setProvider(NoSqlProvider<?> provider) Sets the provider.Methods inherited from class AbstractAppender.Builder
getConfiguration, getErrorPrefix, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withNameMethods inherited from class AbstractFilterable.Builder
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilterMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
getErrorPrefix, isValid
-
Field Details
-
bufferSize
-
provider
-
additionalFields
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
-
setBufferSize
Sets the buffer size.- Parameters:
bufferSize- If an integer greater than 0, this causes the appender to buffer log events and flush whenever the buffer reaches this size.- Returns:
- this
-
setProvider
Sets the provider.- Parameters:
provider- The NoSQL provider that provides connections to the chosen NoSQL database.- Returns:
- this
-