public class SimpleKafkaListenerEndpoint<K,V> extends Object implements org.springframework.kafka.config.KafkaListenerEndpoint
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientIdPrefix |
protected Integer |
concurrency |
protected Properties |
consumerProperties |
protected String |
groupId |
protected String |
id |
protected org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> |
messageListener |
protected boolean |
splitIterables |
protected Pattern |
topicPattern |
protected Collection<String> |
topics |
| Constructor and Description |
|---|
SimpleKafkaListenerEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getAutoStartup() |
String |
getClientIdPrefix() |
Integer |
getConcurrency() |
Properties |
getConsumerProperties() |
String |
getGroup() |
String |
getGroupId() |
String |
getId() |
org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> |
getMessageListener() |
org.springframework.kafka.support.TopicPartitionOffset[] |
getTopicPartitionsToAssign() |
Pattern |
getTopicPattern() |
Collection<String> |
getTopics() |
boolean |
isSplitIterables() |
void |
setClientIdPrefix(String clientIdPrefix) |
void |
setConcurrency(Integer concurrency) |
void |
setConsumerProperties(Properties consumerProperties) |
void |
setGroupId(String groupId) |
void |
setId(String id) |
void |
setMessageListener(org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> messageListener) |
void |
setSplitIterables(boolean splitIterables) |
void |
setTopicPattern(Pattern topicPattern) |
void |
setTopics(Collection<String> topics) |
void |
setupListenerContainer(org.springframework.kafka.listener.MessageListenerContainer listenerContainer,
org.springframework.kafka.support.converter.MessageConverter messageConverter) |
String |
toString() |
protected String id
protected String groupId
protected Collection<String> topics
protected Pattern topicPattern
protected String clientIdPrefix
protected Integer concurrency
protected Properties consumerProperties
protected boolean splitIterables
public void setMessageListener(org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> messageListener)
public org.springframework.kafka.listener.GenericMessageListener<org.apache.kafka.clients.consumer.ConsumerRecord<K,V>> getMessageListener()
public String getId()
getId in interface org.springframework.kafka.config.KafkaListenerEndpointpublic void setId(String id)
public String getGroupId()
getGroupId in interface org.springframework.kafka.config.KafkaListenerEndpointpublic void setGroupId(String groupId)
public String getGroup()
getGroup in interface org.springframework.kafka.config.KafkaListenerEndpointpublic Collection<String> getTopics()
getTopics in interface org.springframework.kafka.config.KafkaListenerEndpointpublic void setTopics(Collection<String> topics)
public org.springframework.kafka.support.TopicPartitionOffset[] getTopicPartitionsToAssign()
getTopicPartitionsToAssign in interface org.springframework.kafka.config.KafkaListenerEndpointpublic Pattern getTopicPattern()
getTopicPattern in interface org.springframework.kafka.config.KafkaListenerEndpointpublic void setTopicPattern(Pattern topicPattern)
public String getClientIdPrefix()
getClientIdPrefix in interface org.springframework.kafka.config.KafkaListenerEndpointpublic void setClientIdPrefix(String clientIdPrefix)
public Integer getConcurrency()
getConcurrency in interface org.springframework.kafka.config.KafkaListenerEndpointpublic void setConcurrency(Integer concurrency)
public Boolean getAutoStartup()
getAutoStartup in interface org.springframework.kafka.config.KafkaListenerEndpointpublic Properties getConsumerProperties()
getConsumerProperties in interface org.springframework.kafka.config.KafkaListenerEndpointpublic void setConsumerProperties(Properties consumerProperties)
public void setupListenerContainer(org.springframework.kafka.listener.MessageListenerContainer listenerContainer,
org.springframework.kafka.support.converter.MessageConverter messageConverter)
setupListenerContainer in interface org.springframework.kafka.config.KafkaListenerEndpointpublic boolean isSplitIterables()
isSplitIterables in interface org.springframework.kafka.config.KafkaListenerEndpointpublic void setSplitIterables(boolean splitIterables)
Copyright © 2020 Flowable. All rights reserved.