@Documented
@Retention(value=RUNTIME)
@Introduction
@Recoverable
@Singleton
public @interface KafkaClient
KafkaProducer
instances.KafkaClientIntroductionAdvice
Modifier and Type | Optional Element and Description |
---|---|
int |
acks |
boolean |
batch
By default when specifying an array or List the object will be serializes to a JSON array.
|
java.lang.String |
id |
java.lang.String |
maxBlock
The maximum duration to block synchronous send operations.
|
io.micronaut.context.annotation.Property[] |
properties
Additional properties to configure with for Consumer.
|
boolean |
timestamp
Whether to include timestamps in outgoing messages.
|
java.lang.String |
transactionalId
The TransactionalId to use for transactional delivery.
|
java.lang.String |
value
Same as
id() . |
@AliasFor(member="id") public abstract java.lang.String value
id()
.@AliasFor(member="value") public abstract java.lang.String id
public abstract java.lang.String transactionalId
enable.idempotence
is implied.
By default, the TransactionId is not configured, which means transactions cannot be used.public abstract java.lang.String maxBlock
public abstract boolean timestamp
public abstract boolean batch
true
this will instead
send each record in the the array or list as an individual ProducerRecord
.public abstract io.micronaut.context.annotation.Property[] properties
public abstract int acks
ack
setting for the client, which impacts message delivery durability.ProducerConfig.ACKS_CONFIG
,
KafkaClient.Acknowledge