@Documented @Retention(value=RUNTIME) @Scope @Introduction @Type(value=KafkaClientIntroductionAdvice.class) @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 |
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 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_DOC
,
KafkaClient.Acknowledge