Package com.consol.citrus.kafka.endpoint
Class KafkaEndpointConfiguration
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointConfiguration
-
- com.consol.citrus.endpoint.AbstractPollableEndpointConfiguration
-
- com.consol.citrus.kafka.endpoint.KafkaEndpointConfiguration
-
- All Implemented Interfaces:
EndpointConfiguration,PollableEndpointConfiguration
public class KafkaEndpointConfiguration extends AbstractPollableEndpointConfiguration
- Since:
- 2.8
- Author:
- Christoph Deppisch
-
-
Constructor Summary
Constructors Constructor Description KafkaEndpointConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAutoCommitInterval()Gets the autoCommitInterval.StringgetClientId()Gets the clientId.StringgetConsumerGroup()Gets the group.Map<String,Object>getConsumerProperties()Gets the consumerProperties.KafkaMessageHeaderMappergetHeaderMapper()Gets the headerMapper.Class<? extends org.apache.kafka.common.serialization.Deserializer>getKeyDeserializer()Gets the keyDeserializer.Class<? extends org.apache.kafka.common.serialization.Serializer>getKeySerializer()Gets the keySerializer.KafkaMessageConvertergetMessageConverter()Gets the message converter.StringgetOffsetReset()Gets the offsetReset.intgetPartition()Gets the partition.Map<String,Object>getProducerProperties()Gets the producerProperties.StringgetServer()Gets the server.StringgetTopic()Gets the topic name.Class<? extends org.apache.kafka.common.serialization.Deserializer>getValueDeserializer()Gets the valueDeserializer.Class<? extends org.apache.kafka.common.serialization.Serializer>getValueSerializer()Gets the valueSerializer.booleanisAutoCommit()Gets the autoCommit.voidsetAutoCommit(boolean autoCommit)Sets the autoCommit.voidsetAutoCommitInterval(int autoCommitInterval)Sets the autoCommitInterval.voidsetClientId(String clientId)Sets the clientId.voidsetConsumerGroup(String consumerGroup)Sets the group.voidsetConsumerProperties(Map<String,Object> consumerProperties)Sets the consumerProperties.voidsetHeaderMapper(KafkaMessageHeaderMapper headerMapper)Sets the headerMapper.voidsetKeyDeserializer(Class<? extends org.apache.kafka.common.serialization.Deserializer> keyDeserializer)Sets the keyDeserializer.voidsetKeySerializer(Class<? extends org.apache.kafka.common.serialization.Serializer> keySerializer)Sets the keySerializer.voidsetMessageConverter(KafkaMessageConverter messageConverter)Sets the message converter.voidsetOffsetReset(String offsetReset)Sets the offsetReset.voidsetPartition(int partition)Sets the partition.voidsetProducerProperties(Map<String,Object> producerProperties)Sets the producerProperties.voidsetServer(String server)Sets the server.voidsetTopic(String topic)Sets the topic name.voidsetValueDeserializer(Class<? extends org.apache.kafka.common.serialization.Deserializer> valueDeserializer)Sets the valueDeserializer.voidsetValueSerializer(Class<? extends org.apache.kafka.common.serialization.Serializer> valueSerializer)Sets the valueSerializer.-
Methods inherited from class com.consol.citrus.endpoint.AbstractPollableEndpointConfiguration
getPollingInterval, setPollingInterval
-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointConfiguration
getTimeout, setTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.consol.citrus.endpoint.EndpointConfiguration
getTimeout, setTimeout
-
-
-
-
Method Detail
-
getTopic
public String getTopic()
Gets the topic name.- Returns:
- the topic
-
setTopic
public void setTopic(String topic)
Sets the topic name.- Parameters:
topic- the topic to set
-
getMessageConverter
public KafkaMessageConverter getMessageConverter()
Gets the message converter.- Returns:
-
setMessageConverter
public void setMessageConverter(KafkaMessageConverter messageConverter)
Sets the message converter.- Parameters:
messageConverter-
-
getHeaderMapper
public KafkaMessageHeaderMapper getHeaderMapper()
Gets the headerMapper.- Returns:
-
setHeaderMapper
public void setHeaderMapper(KafkaMessageHeaderMapper headerMapper)
Sets the headerMapper.- Parameters:
headerMapper-
-
setServer
public void setServer(String server)
Sets the server.- Parameters:
server-
-
getServer
public String getServer()
Gets the server.- Returns:
-
getConsumerGroup
public String getConsumerGroup()
Gets the group.- Returns:
-
setConsumerGroup
public void setConsumerGroup(String consumerGroup)
Sets the group.- Parameters:
consumerGroup-
-
getKeySerializer
public Class<? extends org.apache.kafka.common.serialization.Serializer> getKeySerializer()
Gets the keySerializer.- Returns:
-
setKeySerializer
public void setKeySerializer(Class<? extends org.apache.kafka.common.serialization.Serializer> keySerializer)
Sets the keySerializer.- Parameters:
keySerializer-
-
getValueSerializer
public Class<? extends org.apache.kafka.common.serialization.Serializer> getValueSerializer()
Gets the valueSerializer.- Returns:
-
setValueSerializer
public void setValueSerializer(Class<? extends org.apache.kafka.common.serialization.Serializer> valueSerializer)
Sets the valueSerializer.- Parameters:
valueSerializer-
-
getKeyDeserializer
public Class<? extends org.apache.kafka.common.serialization.Deserializer> getKeyDeserializer()
Gets the keyDeserializer.- Returns:
-
setKeyDeserializer
public void setKeyDeserializer(Class<? extends org.apache.kafka.common.serialization.Deserializer> keyDeserializer)
Sets the keyDeserializer.- Parameters:
keyDeserializer-
-
getValueDeserializer
public Class<? extends org.apache.kafka.common.serialization.Deserializer> getValueDeserializer()
Gets the valueDeserializer.- Returns:
-
setValueDeserializer
public void setValueDeserializer(Class<? extends org.apache.kafka.common.serialization.Deserializer> valueDeserializer)
Sets the valueDeserializer.- Parameters:
valueDeserializer-
-
getConsumerProperties
public Map<String,Object> getConsumerProperties()
Gets the consumerProperties.- Returns:
-
setConsumerProperties
public void setConsumerProperties(Map<String,Object> consumerProperties)
Sets the consumerProperties.- Parameters:
consumerProperties-
-
getProducerProperties
public Map<String,Object> getProducerProperties()
Gets the producerProperties.- Returns:
-
setProducerProperties
public void setProducerProperties(Map<String,Object> producerProperties)
Sets the producerProperties.- Parameters:
producerProperties-
-
getClientId
public String getClientId()
Gets the clientId.- Returns:
-
setClientId
public void setClientId(String clientId)
Sets the clientId.- Parameters:
clientId-
-
getOffsetReset
public String getOffsetReset()
Gets the offsetReset.- Returns:
-
setOffsetReset
public void setOffsetReset(String offsetReset)
Sets the offsetReset.- Parameters:
offsetReset-
-
isAutoCommit
public boolean isAutoCommit()
Gets the autoCommit.- Returns:
-
setAutoCommit
public void setAutoCommit(boolean autoCommit)
Sets the autoCommit.- Parameters:
autoCommit-
-
getAutoCommitInterval
public int getAutoCommitInterval()
Gets the autoCommitInterval.- Returns:
-
setAutoCommitInterval
public void setAutoCommitInterval(int autoCommitInterval)
Sets the autoCommitInterval.- Parameters:
autoCommitInterval-
-
getPartition
public int getPartition()
Gets the partition.- Returns:
-
setPartition
public void setPartition(int partition)
Sets the partition.- Parameters:
partition-
-
-