Annotation Interface KafkaClient
An introduction advice that automatically implements interfaces and abstract classes and creates 
KafkaProducer instances.- Since:
- 1.0
- Author:
- Graeme Rocher
- See Also:
- 
- KafkaClientIntroductionAdvice
 
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classConstants for theacksetting for the client, which impacts message delivery durability.
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionintbooleanBy default when specifying an array or List the object will be serializes to a JSON array.The executor to use to enable non-blocking producer methods.The maximum duration to block synchronous send operations.io.micronaut.context.annotation.Property[]Additional properties to configure with for Consumer.booleanWhether to include timestamps in outgoing messages.The TransactionalId to use for transactional delivery.Same asid().
- 
Element Details- 
valueSame asid().- Returns:
- The id of the client
 - Default:
- ""
 
- 
id- Returns:
- The id of the client
 - Default:
- ""
 
- 
transactionalIdString transactionalIdThe TransactionalId to use for transactional delivery. This enables reliability semantics which span multiple producer sessions since it allows the client to guarantee that transactions using the same TransactionalId have been completed prior to starting any new transactions. If no TransactionalId is provided, then the producer is limited to idempotent delivery. If a TransactionalId is configured,enable.idempotenceis implied. By default, the TransactionId is not configured, which means transactions cannot be used.- Returns:
- true to enable transaction
 - Default:
- ""
 
- 
maxBlockString maxBlockThe maximum duration to block synchronous send operations.- Returns:
- The timeout
 - Default:
- ""
 
- 
timestampboolean timestampWhether to include timestamps in outgoing messages.- Returns:
- True if time stamps should be included. Defaults to false.
 - Default:
- false
 
- 
batchboolean batchBy default when specifying an array or List the object will be serializes to a JSON array. By specifyingtruethis will instead send each record in the the array or list as an individualProducerRecord.- Returns:
- Whether to receive a batch of records or not
 - Default:
- false
 
- 
propertiesio.micronaut.context.annotation.Property[] propertiesAdditional properties to configure with for Consumer.- Returns:
- The properties
 - Default:
- {}
 
- 
acksint acks- Returns:
- The acksetting for the client, which impacts message delivery durability.
- See Also:
 - Default:
- -2147483648
 
- 
executorString executorThe executor to use to enable non-blocking producer methods.- Returns:
- The name of the executor to use
 - Default:
- ""
 
 
-