Package com.rabbitmq.client.amqp
Interface PublisherBuilder
- All Superinterfaces:
AddressBuilder<PublisherBuilder>
API to configure and create a
Publisher
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the configured instance.listeners
(Resource.StateListener... listeners) AddResource.StateListener
s to the consumer.publishTimeout
(Duration timeout) The timeout to wait for a response from the broker.Methods inherited from interface com.rabbitmq.client.amqp.AddressBuilder
exchange, key, queue
-
Method Details
-
listeners
AddResource.StateListener
s to the consumer.- Parameters:
listeners
- listeners- Returns:
- this builder instance
-
publishTimeout
The timeout to wait for a response from the broker.- Parameters:
timeout
- publish timeout- Returns:
- this builder instance
-
build
Publisher build()Build the configured instance.- Returns:
-