public class KafkaProducerOptionsMixin
extends java.lang.Object
Constructor and Description |
---|
KafkaProducerOptionsMixin() |
Modifier and Type | Method and Description |
---|---|
int |
getBatchCount() |
java.lang.String |
getCompressedTopics() |
java.lang.String |
getCompressionCodec() |
int |
getEnqueueTimeout() |
int |
getMaxBufferMsgs() |
int |
getMaxBufferTime() |
int |
getMaxSendRetries() |
java.lang.String |
getProducerType() |
int |
getRequestRequiredAck() |
int |
getRequestTimeout() |
int |
getRetryBackoff() |
int |
getSocketBufferSize() |
int |
getTopicMetadataRefreshInterval() |
boolean |
isProducerTypeValid() |
boolean |
isRequestRequiredAckValid() |
boolean |
isValidCompressionCodec() |
void |
setBatchCount(int batchCount) |
void |
setCompressedTopics(java.lang.String compressedTopics) |
void |
setCompressionCodec(java.lang.String compressionCodec) |
void |
setEnqueueTimeout(int enqueueTimeout) |
void |
setMaxBufferMsgs(int maxBufferMsgs) |
void |
setMaxBufferTime(int maxBufferTime) |
void |
setMaxSendRetries(int maxSendRetries) |
void |
setProducerType(java.lang.String producerType) |
void |
setRequestRequiredAck(int requestRequiredAck) |
void |
setRequestTimeout(int requestTimeout) |
void |
setRetryBackoff(int retryBackoff) |
void |
setSocketBufferSize(int socketBufferSize) |
void |
setTopicMetadataRefreshInterval(int topicMetadataRefreshInterval) |
public int getRequestRequiredAck()
public void setRequestRequiredAck(int requestRequiredAck)
@AssertTrue(message="requestRequiredAck can have values 0, 1 or -1") public boolean isRequestRequiredAckValid()
public int getRequestTimeout()
public void setRequestTimeout(int requestTimeout)
public java.lang.String getProducerType()
public void setProducerType(java.lang.String producerType)
@AssertTrue(message="produer type can either be sync or async") public boolean isProducerTypeValid()
public java.lang.String getCompressionCodec()
public void setCompressionCodec(java.lang.String compressionCodec)
@AssertTrue(message="compression codec can be \'none\', \'gzip\' or \'snappy\'") public boolean isValidCompressionCodec()
public java.lang.String getCompressedTopics()
public void setCompressedTopics(java.lang.String compressedTopics)
public int getMaxSendRetries()
public void setMaxSendRetries(int maxSendRetries)
public int getRetryBackoff()
public void setRetryBackoff(int retryBackoff)
public int getTopicMetadataRefreshInterval()
public void setTopicMetadataRefreshInterval(int topicMetadataRefreshInterval)
public int getMaxBufferTime()
public void setMaxBufferTime(int maxBufferTime)
public int getMaxBufferMsgs()
public void setMaxBufferMsgs(int maxBufferMsgs)
public int getEnqueueTimeout()
public void setEnqueueTimeout(int enqueueTimeout)
public int getBatchCount()
public void setBatchCount(int batchCount)
public int getSocketBufferSize()
public void setSocketBufferSize(int socketBufferSize)