org.springframework.kafka.support.converter.RecordMessageConverter Java Examples

The following examples show how to use org.springframework.kafka.support.converter.RecordMessageConverter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReplyConfiguration.java    From faster-framework-project with Apache License 2.0 5 votes vote down vote up
public ReplyConfiguration(KafkaProperties properties,
                          org.springframework.boot.autoconfigure.kafka.KafkaProperties kafkaProperties,
                          ObjectProvider<RecordMessageConverter> messageConverter,
                          ConsumerFactory<Object, Object> consumerFactory,
                          ProducerFactory<Object, Object> producerFactory,
                          ProducerListener<Object, Object> producerListener) {
    this.kafkaProperties = kafkaProperties;
    this.properties = properties;
    this.messageConverter = messageConverter.getIfUnique();
    this.consumerFactory = consumerFactory;
    this.producerFactory = producerFactory;
    this.producerListener = producerListener;
}
 
Example #2
Source File: DunwuKafkaConfig.java    From spring-boot-tutorial with Creative Commons Attribution Share Alike 4.0 International 4 votes vote down vote up
@Bean
public RecordMessageConverter converter() {
    return new StringJsonMessageConverter();
}
 
Example #3
Source File: LocKafkaAutoConfiguration.java    From loc-framework with MIT License 4 votes vote down vote up
@Bean
@ConditionalOnMissingBean
public RecordMessageConverter recordMessageConverter() {
  return new StringJsonMessageConverter(objectMapper);
}
 
Example #4
Source File: Application.java    From spring-cloud-contract-samples with Apache License 2.0 4 votes vote down vote up
@Bean
public RecordMessageConverter converter() {
	return new StringJsonMessageConverter();
}
 
Example #5
Source File: Application.java    From spring-cloud-contract-samples with Apache License 2.0 4 votes vote down vote up
@Bean
public RecordMessageConverter converter() {
	return new StringJsonMessageConverter();
}