Java org.springframework.kafka.listener ContainerProperties fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.kafka.listener ContainerProperties fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.kafka.listener ContainerProperties.

The text is from its open source code.

Constructor

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.

Method

voidsetGroupId(String groupId)
Set the group id for this container.
voidsetMessageListener(Object messageListener)
Set the message listener; must be a org.springframework.kafka.listener.MessageListener or org.springframework.kafka.listener.AcknowledgingMessageListener .
voidsetPollTimeout(long pollTimeout)
Set the max time to block in the consumer waiting for records.
voidsetTransactionManager(PlatformTransactionManager transactionManager)
Set the transaction manager to start a transaction; only AckMode#RECORD and AckMode#BATCH (default) are supported with transactions.