public class KafkaProducerOptionsMixin
extends java.lang.Object
Constructor and Description |
---|
KafkaProducerOptionsMixin() |
Modifier and Type | Method and Description |
---|---|
int |
getAckTimeoutOnServer() |
int |
getBatchBytes() |
int |
getBufferMemory() |
java.lang.String |
getCompressionCodec() |
int |
getMaxBufferTime() |
int |
getMaxRequestSize() |
int |
getMaxSendRetries() |
int |
getReceiveBufferBytes() |
long |
getReconnectBackoff() |
int |
getRequestRequiredAck() |
long |
getRetryBackoff() |
int |
getSendBufferBytes() |
int |
getTopicMetadataFetchTimeout() |
int |
getTopicMetadataRefreshInterval() |
boolean |
isBlockOnBufferFull() |
boolean |
isRequestRequiredAckValid() |
boolean |
isValidCompressionCodec() |
void |
setAckTimeoutOnServer(int ackTimeoutOnServer) |
void |
setBatchBytes(int batchBytes) |
void |
setBlockOnBufferFull(boolean blockOnBufferFull) |
void |
setBufferMemory(int bufferMemory) |
void |
setCompressionCodec(java.lang.String compressionCodec) |
void |
setMaxBufferTime(int maxBufferTime) |
void |
setMaxRequestSize(int maxRequestSize) |
void |
setMaxSendRetries(int maxSendRetries) |
void |
setReceiveBufferBytes(int receiveBufferBytes) |
void |
setReconnectBackoff(long reconnectBackoff) |
void |
setRequestRequiredAck(int requestRequiredAck) |
void |
setRetryBackoff(long retryBackoff) |
void |
setSendBufferBytes(int sendBufferBytes) |
void |
setTopicMetadataFetchTimeout(int topicMetadataFetchTimeout) |
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 getBufferMemory()
public void setBufferMemory(int bufferMemory)
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 int getMaxSendRetries()
public void setMaxSendRetries(int maxSendRetries)
public int getBatchBytes()
public void setBatchBytes(int batchBytes)
public int getMaxRequestSize()
public void setMaxRequestSize(int maxRequestSize)
public int getMaxBufferTime()
public void setMaxBufferTime(int maxBufferTime)
public int getReceiveBufferBytes()
public void setReceiveBufferBytes(int receiveBufferBytes)
public int getSendBufferBytes()
public void setSendBufferBytes(int sendBufferBytes)
public int getAckTimeoutOnServer()
public void setAckTimeoutOnServer(int ackTimeoutOnServer)
public boolean isBlockOnBufferFull()
public void setBlockOnBufferFull(boolean blockOnBufferFull)
public int getTopicMetadataRefreshInterval()
public void setTopicMetadataRefreshInterval(int topicMetadataRefreshInterval)
public int getTopicMetadataFetchTimeout()
public void setTopicMetadataFetchTimeout(int topicMetadataFetchTimeout)
public long getReconnectBackoff()
public void setReconnectBackoff(long reconnectBackoff)
public long getRetryBackoff()
public void setRetryBackoff(long retryBackoff)