B
- The type to buildBuilder<NoSqlAppender>
public static class NoSqlAppender.Builder<B extends NoSqlAppender.Builder<B>> extends AbstractAppender.Builder<B> implements Builder<NoSqlAppender>
Constructor | Description |
---|---|
Builder() |
Modifier and Type | Method | Description |
---|---|---|
NoSqlAppender |
build() |
Builds the object after all configuration has been set.
|
B |
setBufferSize(int bufferSize) |
Sets the buffer size.
|
B |
setProvider(NoSqlProvider<?> provider) |
Sets the provider.
|
getConfiguration, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, withConfiguration, withIgnoreExceptions, withLayout, withName
asBuilder, getFilter, withFilter
public NoSqlAppender build()
Builder
build
in interface Builder<B extends NoSqlAppender.Builder<B>>
public B setBufferSize(int bufferSize)
bufferSize
- If an integer greater than 0, this causes the appender to buffer log events and flush whenever the
buffer reaches this size.public B setProvider(NoSqlProvider<?> provider)
provider
- The NoSQL provider that provides connections to the chosen NoSQL database.Copyright © 1999-2018. 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.