Example usage for Java org.springframework.kafka.listener ContainerProperties fields, constructors, methods, implement or subclass
The text is from its open source code.
ContainerProperties(String... topics) Create properties for a container that will subscribe to the specified topics. | |
ContainerProperties(Pattern topicPattern) Create properties for a container that will subscribe to topics matching the specified pattern. | |
ContainerProperties(org.springframework.kafka.support.TopicPartitionInitialOffset... topicPartitions) Create properties for a container that will assign itself the provided topic partitions. | |
ContainerProperties(TopicPartitionOffset... topicPartitions) Create properties for a container that will assign itself the provided topic partitions. |
void | setGroupId(String groupId) Set the group id for this container. |
void | setMessageListener(Object messageListener) Set the message listener; must be a org.springframework.kafka.listener.MessageListener or org.springframework.kafka.listener.AcknowledgingMessageListener . |
void | setPollTimeout(long pollTimeout) Set the max time to block in the consumer waiting for records. |
void | setTransactionManager(PlatformTransactionManager transactionManager) Set the transaction manager to start a transaction; only AckMode#RECORD and AckMode#BATCH (default) are supported with transactions. |