public static final class KafkaPublisherConfiguration.Builder<K,V> extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
KafkaPublisherConfiguration<K,V> |
build() |
KafkaPublisherConfiguration.Builder<K,V> |
withMessageConverter(KafkaMessageConverter<K,V> messageConverter)
Configure
KafkaMessageConverter . |
KafkaPublisherConfiguration.Builder<K,V> |
withMessageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
Configure
MessageMonitor . |
KafkaPublisherConfiguration.Builder<K,V> |
withMessageSource(SubscribableMessageSource<EventMessage<?>> messageSource)
Configure
SubscribableMessageSource . |
KafkaPublisherConfiguration.Builder<K,V> |
withProducerFactory(ProducerFactory<K,V> producerFactory)
Configure
ProducerFactory . |
KafkaPublisherConfiguration.Builder<K,V> |
withPublisherAckTimeout(long timeoutInMillis) |
KafkaPublisherConfiguration.Builder<K,V> |
withTopic(String topic)
Configure Kafka topic for publishing messages, default to
Axon.EventBus . |
public KafkaPublisherConfiguration.Builder<K,V> withMessageSource(SubscribableMessageSource<EventMessage<?>> messageSource)
SubscribableMessageSource
.messageSource
- the message source.public KafkaPublisherConfiguration.Builder<K,V> withProducerFactory(ProducerFactory<K,V> producerFactory)
ProducerFactory
.producerFactory
- the producer factory.public KafkaPublisherConfiguration.Builder<K,V> withMessageConverter(KafkaMessageConverter<K,V> messageConverter)
KafkaMessageConverter
.messageConverter
- the message converter.public KafkaPublisherConfiguration.Builder<K,V> withMessageMonitor(MessageMonitor<? super EventMessage<?>> messageMonitor)
MessageMonitor
.messageMonitor
- the message monitor.public KafkaPublisherConfiguration.Builder<K,V> withTopic(String topic)
Axon.EventBus
.topic
- the topic.public KafkaPublisherConfiguration.Builder<K,V> withPublisherAckTimeout(long timeoutInMillis)
timeoutInMillis
- how long to wait for publisher to acknowledge send, expressed in millis. Default to 1
sec.public KafkaPublisherConfiguration<K,V> build()
Copyright © 2010–2018. All rights reserved.