Class AzureEventHubSubscriber
java.lang.Object
org.chenile.pubsub.azure.sub.AzureEventHubSubscriber
- All Implemented Interfaces:
Consumer<com.azure.messaging.eventhubs.models.EventContext>, InitializingBean
public class AzureEventHubSubscriber
extends Object
implements Consumer<com.azure.messaging.eventhubs.models.EventContext>, InitializingBean
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChenileEventHubPropertiesprivate final ChenilePubprivate final EventProcessorprivate final List<PubSubMessageInterceptor> private static final org.slf4j.Loggerprivate final List<ChenileMessageHandler> -
Constructor Summary
ConstructorsConstructorDescriptionAzureEventHubSubscriber(EventProcessor eventProcessor, ChenilePub chenilePub, ChenileEventHubProperties chenileEventHubProperties) AzureEventHubSubscriber(EventProcessor eventProcessor, ChenilePub chenilePub, ChenileEventHubProperties chenileEventHubProperties, List<PubSubMessageInterceptor> interceptors) AzureEventHubSubscriber(EventProcessor eventProcessor, ChenilePub chenilePub, ChenileEventHubProperties chenileEventHubProperties, List<PubSubMessageInterceptor> interceptors, List<ChenileMessageHandler> messageHandlers) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(com.azure.messaging.eventhubs.models.EventContext eventContext) voidprivate PubSubMessage(package private) voidprocessDeadLetters(String body, Map<String, Object> eventProperties, List<ChenileExchange> results) (package private) List<ChenileExchange>
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
eventProcessor
-
chenilePub
-
chenileEventHubProperties
-
interceptors
-
messageHandlers
-
-
Constructor Details
-
AzureEventHubSubscriber
public AzureEventHubSubscriber(EventProcessor eventProcessor, ChenilePub chenilePub, ChenileEventHubProperties chenileEventHubProperties) -
AzureEventHubSubscriber
public AzureEventHubSubscriber(EventProcessor eventProcessor, ChenilePub chenilePub, ChenileEventHubProperties chenileEventHubProperties, List<PubSubMessageInterceptor> interceptors) -
AzureEventHubSubscriber
public AzureEventHubSubscriber(EventProcessor eventProcessor, ChenilePub chenilePub, ChenileEventHubProperties chenileEventHubProperties, List<PubSubMessageInterceptor> interceptors, List<ChenileMessageHandler> messageHandlers)
-
-
Method Details
-
accept
-
processDeadLetters
-
convert
-
processWithTenantContext
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
applyBeforeSubscribeInterceptors
-
CHENILE