Interface EventHubsProducerFactory.Listener
- Enclosing interface:
- EventHubsProducerFactory
public static interface EventHubsProducerFactory.Listener
Called whenever a producer is added or removed.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
producerAdded
(String name, com.azure.messaging.eventhubs.EventHubProducerAsyncClient client) The callback method that the producer has been added.default void
producerRemoved
(String name, com.azure.messaging.eventhubs.EventHubProducerAsyncClient 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.eventhubs.EventHubProducerAsyncClient client) The default callback method that the producer has been removed.- Parameters:
name
- the name for the producer.client
- the client for the producer.
-