Worker implementation which sends messages to Kafka cluster.
Configuration can define following properties:
async
- Can betrue
orfalse
. Determines whether messages will be sent in asynchronous fashion or not. Optional, if not specified defaults tofalse
.topic
- Name of the topic to which message will be sent to. Optional. Can be overridden by message level topic property.producer-configuration
- Below this placeholder Kafka specific properties should be defined. List of properties is defined within Kafka documentation.
Worker accept
method expects following properties:
key
- (String) Key of Kafka message. Mandatory.value
- (String) Value of Kafka message. Mandatory.topic
- (String) Name of the topic to which message will be sent to. Optional. Overrides configuration level topic property.
Example yaml configuration:
worker-configuration:
async: true
topic: topic1
producer-configuration:
bootstrap.servers: 192.168.0.5:32772