Package su.onno.kafka
Class OnnoKafkaAutoConfiguration
java.lang.Object
su.onno.kafka.OnnoKafkaAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(org.springframework.kafka.core.KafkaTemplate.class)
@ConditionalOnBean({OutboxWriter.class,org.springframework.kafka.core.KafkaTemplate.class})
@ConditionalOnProperty(prefix="onno.kafka",
name="enabled",
havingValue="true",
matchIfMissing=true)
@EnableConfigurationProperties(OnnoKafkaProperties.class)
public class OnnoKafkaAutoConfiguration
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionoutboxRelay(OutboxWriter outboxWriter, org.springframework.kafka.core.KafkaTemplate<String, String> kafkaTemplate, com.fasterxml.jackson.databind.ObjectMapper objectMapper, OnnoKafkaProperties properties) remoteRefClient(ServiceRegistry serviceRegistry, org.springframework.web.client.RestClient.Builder restClientBuilder) serviceRegistry(OnnoKafkaProperties properties)
-
Constructor Details
-
OnnoKafkaAutoConfiguration
public OnnoKafkaAutoConfiguration()
-
-
Method Details
-
serviceRegistry
-
remoteRefClient
@Bean public RemoteRefClient remoteRefClient(ServiceRegistry serviceRegistry, org.springframework.web.client.RestClient.Builder restClientBuilder) -
outboxRelay
@Bean public OutboxRelay outboxRelay(OutboxWriter outboxWriter, org.springframework.kafka.core.KafkaTemplate<String, String> kafkaTemplate, com.fasterxml.jackson.databind.ObjectMapper objectMapper, OnnoKafkaProperties properties)
-