Interface ServiceBusProducerFactory.Listener
- Enclosing interface:
- ServiceBusProducerFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Called whenever a producer is added or removed.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
producerAdded
(String name, com.azure.messaging.servicebus.ServiceBusSenderAsyncClient client) The callback method that the producer has been added.default void
producerRemoved
(String name, com.azure.messaging.servicebus.ServiceBusSenderAsyncClient client) The default callback method that the producer has been removed.
-
Method Details
-
producerAdded
The callback method that the producer has been added.- Parameters:
name
- the name for the producer.client
- the client for the producer.
-
producerRemoved
default void producerRemoved(String name, com.azure.messaging.servicebus.ServiceBusSenderAsyncClient client) The default callback method that the producer has been removed.- Parameters:
name
- the name for the producer.client
- the client for the producer.
-