B
- The type to buildpublic static class KafkaAppender.Builder<B extends KafkaAppender.Builder<B>> extends AbstractAppender.Builder<B> implements Builder<KafkaAppender>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
KafkaAppender |
build()
Builds the object after all configuration has been set.
|
Integer |
getRetryCount() |
String |
getTopic() |
boolean |
isSendEventTimestamp() |
boolean |
isSyncSend() |
B |
setKey(String key) |
B |
setRetryCount(int retryCount) |
B |
setRetryCount(String retryCount)
Deprecated.
|
B |
setSendEventTimestamp(boolean sendEventTimestamp) |
B |
setSyncSend(boolean syncSend) |
B |
setTopic(String topic) |
getConfiguration, getErrorPrefix, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withName
asBuilder, getFilter, getPropertyArray, setFilter, setPropertyArray, withFilter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getErrorPrefix, isValid
public KafkaAppender build()
Builder
build
in interface Builder<KafkaAppender>
public Integer getRetryCount()
public String getTopic()
public boolean isSendEventTimestamp()
public boolean isSyncSend()
@Deprecated public B setRetryCount(String retryCount)
public B setRetryCount(int retryCount)
public B setSendEventTimestamp(boolean sendEventTimestamp)
public B setSyncSend(boolean syncSend)
Copyright © 1999-2023 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.