public class EventHubProcessor extends Object implements com.microsoft.azure.eventprocessorhost.IEventProcessor
IEventProcessor to be registered via event hub sdk.
Mainly handle message conversion and checkpoint
| Constructor and Description |
|---|
EventHubProcessor(Consumer<org.springframework.messaging.Message<?>> consumer,
Class<?> payloadType,
CheckpointConfig checkpointConfig,
EventHubMessageConverter messageConverter) |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(com.microsoft.azure.eventprocessorhost.PartitionContext context,
com.microsoft.azure.eventprocessorhost.CloseReason reason) |
void |
onError(com.microsoft.azure.eventprocessorhost.PartitionContext context,
Throwable error) |
void |
onEvents(com.microsoft.azure.eventprocessorhost.PartitionContext context,
Iterable<com.microsoft.azure.eventhubs.EventData> events) |
void |
onOpen(com.microsoft.azure.eventprocessorhost.PartitionContext context) |
public EventHubProcessor(Consumer<org.springframework.messaging.Message<?>> consumer, Class<?> payloadType, CheckpointConfig checkpointConfig, EventHubMessageConverter messageConverter)
public void onOpen(com.microsoft.azure.eventprocessorhost.PartitionContext context)
throws Exception
onOpen in interface com.microsoft.azure.eventprocessorhost.IEventProcessorExceptionpublic void onClose(com.microsoft.azure.eventprocessorhost.PartitionContext context,
com.microsoft.azure.eventprocessorhost.CloseReason reason)
throws Exception
onClose in interface com.microsoft.azure.eventprocessorhost.IEventProcessorExceptionpublic void onEvents(com.microsoft.azure.eventprocessorhost.PartitionContext context,
Iterable<com.microsoft.azure.eventhubs.EventData> events)
throws Exception
onEvents in interface com.microsoft.azure.eventprocessorhost.IEventProcessorExceptionpublic void onError(com.microsoft.azure.eventprocessorhost.PartitionContext context,
Throwable error)
onError in interface com.microsoft.azure.eventprocessorhost.IEventProcessorCopyright © 2019 Pivotal Software, Inc.. All rights reserved.