public abstract class KafkaAppenderConfig<E>
extends ch.qos.logback.core.UnsynchronizedAppenderBase<E>
implements ch.qos.logback.core.spi.AppenderAttachable<E>
Modifier and Type | Field and Description |
---|---|
protected boolean |
appendTimestamp |
protected DeliveryStrategy |
deliveryStrategy |
protected ch.qos.logback.core.encoder.Encoder<E> |
encoder |
protected KeyingStrategy<? super E> |
keyingStrategy |
protected Integer |
partition |
protected Map<String,Object> |
producerConfig |
protected String |
topic |
Constructor and Description |
---|
KafkaAppenderConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addProducerConfig(String keyValue) |
void |
addProducerConfigValue(String key,
Object value) |
protected boolean |
checkPrerequisites() |
Map<String,Object> |
getProducerConfig() |
boolean |
isAppendTimestamp() |
void |
setAppendTimestamp(boolean appendTimestamp) |
void |
setDeliveryStrategy(DeliveryStrategy deliveryStrategy) |
void |
setEncoder(ch.qos.logback.core.encoder.Encoder<E> encoder) |
void |
setKeyingStrategy(KeyingStrategy<? super E> keyingStrategy) |
void |
setPartition(Integer partition) |
void |
setTopic(String topic) |
addFilter, append, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toString
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
protected String topic
protected ch.qos.logback.core.encoder.Encoder<E> encoder
protected KeyingStrategy<? super E> keyingStrategy
protected DeliveryStrategy deliveryStrategy
protected Integer partition
protected boolean appendTimestamp
protected boolean checkPrerequisites()
public void setEncoder(ch.qos.logback.core.encoder.Encoder<E> encoder)
public void setTopic(String topic)
public void setKeyingStrategy(KeyingStrategy<? super E> keyingStrategy)
public void addProducerConfig(String keyValue)
public void setDeliveryStrategy(DeliveryStrategy deliveryStrategy)
public void setPartition(Integer partition)
public boolean isAppendTimestamp()
public void setAppendTimestamp(boolean appendTimestamp)
Copyright © 2015–2018. All rights reserved.