Package com.consol.citrus.kafka.endpoint
Class KafkaEndpointBuilder
- java.lang.Object
-
- com.consol.citrus.endpoint.AbstractEndpointBuilder<KafkaEndpoint>
-
- com.consol.citrus.kafka.endpoint.KafkaEndpointBuilder
-
- All Implemented Interfaces:
EndpointBuilder<KafkaEndpoint>
public class KafkaEndpointBuilder extends AbstractEndpointBuilder<KafkaEndpoint>
- Since:
- 2.8
- Author:
- Christoph Deppisch
-
-
Field Summary
-
Fields inherited from interface com.consol.citrus.endpoint.EndpointBuilder
LOG, RESOURCE_PATH, TYPE_RESOLVER
-
-
Constructor Summary
Constructors Constructor Description KafkaEndpointBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KafkaEndpointBuilderautoCommit(boolean autoCommit)Sets the autoCommit property.KafkaEndpointBuilderautoCommitInterval(int autoCommitInterval)Sets the autoCommitInterval property.KafkaEndpointBuilderclientId(String clientId)Sets the clientId property.KafkaEndpointBuilderconsumerGroup(String group)Sets the consumer group property.KafkaEndpointBuilderconsumerProperties(Map<String,Object> consumerProperties)Sets the consumer properties.protected KafkaEndpointgetEndpoint()KafkaEndpointBuilderheaderMapper(KafkaMessageHeaderMapper headerMapper)Sets the headerMapper property.KafkaEndpointBuilderkeyDeserializer(Class<? extends org.apache.kafka.common.serialization.Deserializer> deserializer)Sets the key deserializer property.KafkaEndpointBuilderkeySerializer(Class<? extends org.apache.kafka.common.serialization.Serializer> serializer)Sets the key serializer property.KafkaEndpointBuildermessageConverter(KafkaMessageConverter messageConverter)Sets the messageConverter property.KafkaEndpointBuilderoffsetReset(String offsetReset)Sets the offsetReset property.KafkaEndpointBuilderpartition(int partition)Sets the partition property.KafkaEndpointBuilderproducerProperties(Map<String,Object> producerProperties)Sets the producer properties.KafkaEndpointBuilderserver(String server)Sets the server property.KafkaEndpointBuildertimeout(long timeout)Sets the default timeout.KafkaEndpointBuildertopic(String topicName)Sets the topicName property.KafkaEndpointBuildervalueDeserializer(Class<? extends org.apache.kafka.common.serialization.Deserializer> deserializer)Sets the value deserializer property.KafkaEndpointBuildervalueSerializer(Class<? extends org.apache.kafka.common.serialization.Serializer> serializer)Sets the value serializer property.-
Methods inherited from class com.consol.citrus.endpoint.AbstractEndpointBuilder
actor, build, initialize, name, referenceResolver, supports
-
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.EndpointBuilder
build, build
-
-
-
-
Method Detail
-
getEndpoint
protected KafkaEndpoint getEndpoint()
- Specified by:
getEndpointin classAbstractEndpointBuilder<KafkaEndpoint>
-
server
public KafkaEndpointBuilder server(String server)
Sets the server property.- Parameters:
server-- Returns:
-
topic
public KafkaEndpointBuilder topic(String topicName)
Sets the topicName property.- Parameters:
topicName-- Returns:
-
partition
public KafkaEndpointBuilder partition(int partition)
Sets the partition property.- Parameters:
partition-- Returns:
-
autoCommit
public KafkaEndpointBuilder autoCommit(boolean autoCommit)
Sets the autoCommit property.- Parameters:
autoCommit-- Returns:
-
autoCommitInterval
public KafkaEndpointBuilder autoCommitInterval(int autoCommitInterval)
Sets the autoCommitInterval property.- Parameters:
autoCommitInterval-- Returns:
-
offsetReset
public KafkaEndpointBuilder offsetReset(String offsetReset)
Sets the offsetReset property.- Parameters:
offsetReset-- Returns:
-
clientId
public KafkaEndpointBuilder clientId(String clientId)
Sets the clientId property.- Parameters:
clientId-- Returns:
-
consumerGroup
public KafkaEndpointBuilder consumerGroup(String group)
Sets the consumer group property.- Parameters:
group-- Returns:
-
messageConverter
public KafkaEndpointBuilder messageConverter(KafkaMessageConverter messageConverter)
Sets the messageConverter property.- Parameters:
messageConverter-- Returns:
-
headerMapper
public KafkaEndpointBuilder headerMapper(KafkaMessageHeaderMapper headerMapper)
Sets the headerMapper property.- Parameters:
headerMapper-- Returns:
-
keySerializer
public KafkaEndpointBuilder keySerializer(Class<? extends org.apache.kafka.common.serialization.Serializer> serializer)
Sets the key serializer property.- Parameters:
serializer-- Returns:
-
valueSerializer
public KafkaEndpointBuilder valueSerializer(Class<? extends org.apache.kafka.common.serialization.Serializer> serializer)
Sets the value serializer property.- Parameters:
serializer-- Returns:
-
keyDeserializer
public KafkaEndpointBuilder keyDeserializer(Class<? extends org.apache.kafka.common.serialization.Deserializer> deserializer)
Sets the key deserializer property.- Parameters:
deserializer-- Returns:
-
valueDeserializer
public KafkaEndpointBuilder valueDeserializer(Class<? extends org.apache.kafka.common.serialization.Deserializer> deserializer)
Sets the value deserializer property.- Parameters:
deserializer-- Returns:
-
producerProperties
public KafkaEndpointBuilder producerProperties(Map<String,Object> producerProperties)
Sets the producer properties.- Parameters:
producerProperties-- Returns:
-
consumerProperties
public KafkaEndpointBuilder consumerProperties(Map<String,Object> consumerProperties)
Sets the consumer properties.- Parameters:
consumerProperties-- Returns:
-
timeout
public KafkaEndpointBuilder timeout(long timeout)
Sets the default timeout.- Parameters:
timeout-- Returns:
-
-