Class SimpleKafkaListenerEndpoint<K,V>
- java.lang.Object
-
- org.flowable.eventregistry.spring.kafka.SimpleKafkaListenerEndpoint<K,V>
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean,org.springframework.kafka.config.KafkaListenerEndpoint
public class SimpleKafkaListenerEndpoint<K,V> extends Object implements org.springframework.kafka.config.KafkaListenerEndpoint, org.springframework.beans.factory.InitializingBean
- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected StringclientIdPrefixprotected Integerconcurrencyprotected PropertiesconsumerPropertiesprotected StringgroupIdprotected Stringidprotected org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>messageListenerprotected booleansplitIterablesprotected Collection<org.springframework.kafka.support.TopicPartitionOffset>topicPartitionsprotected PatterntopicPatternprotected Collection<String>topics
-
Constructor Summary
Constructors Constructor Description SimpleKafkaListenerEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()BooleangetAutoStartup()StringgetClientIdPrefix()IntegergetConcurrency()PropertiesgetConsumerProperties()StringgetGroup()StringgetGroupId()StringgetId()org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>>getMessageListener()org.springframework.kafka.support.TopicPartitionOffset[]getTopicPartitionsToAssign()PatterngetTopicPattern()Collection<String>getTopics()booleanisSplitIterables()voidsetClientIdPrefix(String clientIdPrefix)voidsetConcurrency(Integer concurrency)voidsetConsumerProperties(Properties consumerProperties)voidsetGroupId(String groupId)voidsetId(String id)voidsetMessageListener(org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> messageListener)voidsetSplitIterables(boolean splitIterables)voidsetTopicPartitions(Collection<org.springframework.kafka.support.TopicPartitionOffset> topicPartitions)voidsetTopicPattern(Pattern topicPattern)voidsetTopics(Collection<String> topics)voidsetupListenerContainer(org.springframework.kafka.listener.MessageListenerContainer listenerContainer, org.springframework.kafka.support.converter.MessageConverter messageConverter)StringtoString()
-
-
-
Field Detail
-
id
protected String id
-
groupId
protected String groupId
-
topics
protected Collection<String> topics
-
topicPattern
protected Pattern topicPattern
-
topicPartitions
protected Collection<org.springframework.kafka.support.TopicPartitionOffset> topicPartitions
-
clientIdPrefix
protected String clientIdPrefix
-
concurrency
protected Integer concurrency
-
consumerProperties
protected Properties consumerProperties
-
splitIterables
protected boolean splitIterables
-
-
Method Detail
-
setMessageListener
public void setMessageListener(org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> messageListener)
-
getMessageListener
public org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> getMessageListener()
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
setId
public void setId(String id)
-
getGroupId
public String getGroupId()
- Specified by:
getGroupIdin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
setGroupId
public void setGroupId(String groupId)
-
getGroup
public String getGroup()
- Specified by:
getGroupin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
getTopics
public Collection<String> getTopics()
- Specified by:
getTopicsin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
setTopics
public void setTopics(Collection<String> topics)
-
getTopicPartitionsToAssign
public org.springframework.kafka.support.TopicPartitionOffset[] getTopicPartitionsToAssign()
- Specified by:
getTopicPartitionsToAssignin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
setTopicPartitions
public void setTopicPartitions(Collection<org.springframework.kafka.support.TopicPartitionOffset> topicPartitions)
-
getTopicPattern
public Pattern getTopicPattern()
- Specified by:
getTopicPatternin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
setTopicPattern
public void setTopicPattern(Pattern topicPattern)
-
getClientIdPrefix
public String getClientIdPrefix()
- Specified by:
getClientIdPrefixin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
setClientIdPrefix
public void setClientIdPrefix(String clientIdPrefix)
-
getConcurrency
public Integer getConcurrency()
- Specified by:
getConcurrencyin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
setConcurrency
public void setConcurrency(Integer concurrency)
-
getAutoStartup
public Boolean getAutoStartup()
- Specified by:
getAutoStartupin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
getConsumerProperties
public Properties getConsumerProperties()
- Specified by:
getConsumerPropertiesin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
setConsumerProperties
public void setConsumerProperties(Properties consumerProperties)
-
setupListenerContainer
public void setupListenerContainer(org.springframework.kafka.listener.MessageListenerContainer listenerContainer, org.springframework.kafka.support.converter.MessageConverter messageConverter)- Specified by:
setupListenerContainerin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
isSplitIterables
public boolean isSplitIterables()
- Specified by:
isSplitIterablesin interfaceorg.springframework.kafka.config.KafkaListenerEndpoint
-
setSplitIterables
public void setSplitIterables(boolean splitIterables)
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
-