Interface EventHubsProcessorFactory.Listener
- Enclosing interface:
- EventHubsProcessorFactory
public static interface EventHubsProcessorFactory.Listener
Called whenever a processor is added or removed.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processorAdded
(String eventHub, String consumerGroup, com.azure.messaging.eventhubs.EventProcessorClient client) The callback method that the processor has been added.default void
processorRemoved
(String eventHub, String consumerGroup, com.azure.messaging.eventhubs.EventProcessorClient client) The default callback method that the processor has been removed.
-
Method Details
-
processorAdded
void processorAdded(String eventHub, String consumerGroup, com.azure.messaging.eventhubs.EventProcessorClient client) The callback method that the processor has been added.- Parameters:
eventHub
- the event hub name.consumerGroup
- the consumer group.client
- the client for the processor.
-
processorRemoved
default void processorRemoved(String eventHub, String consumerGroup, com.azure.messaging.eventhubs.EventProcessorClient client) The default callback method that the processor has been removed.- Parameters:
eventHub
- the event hub name.consumerGroup
- the consumer group.client
- the client for the processor.
-