Interface EventHubsProducerFactory.Listener

Enclosing interface:
EventHubsProducerFactory

public static interface EventHubsProducerFactory.Listener
Called whenever a producer is added or removed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

      void producerAdded(String name, com.azure.messaging.eventhubs.EventHubProducerAsyncClient client)
      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.