Interface EventHubsProducerFactory

All Known Implementing Classes:
DefaultEventHubsNamespaceProducerFactory

public interface EventHubsProducerFactory
The strategy to produce EventHubProducerAsyncClient instance.
  • Method Details

    • createProducer

      com.azure.messaging.eventhubs.EventHubProducerAsyncClient createProducer(String eventHub)
      Create EventHubProducerAsyncClient to send events to the event hub.
      Parameters:
      eventHub - the event hub
      Returns:
      the producer.
    • addListener

      default void addListener(EventHubsProducerFactory.Listener listener)
      Add a listener for this factory.
      Parameters:
      listener - the listener
    • removeListener

      default boolean removeListener(EventHubsProducerFactory.Listener listener)
      Remove a listener
      Parameters:
      listener - the listener
      Returns:
      true if removed.