Uses of Class
com.azure.messaging.eventhubs.EventData
Package
Description
Package containing classes for creating
EventHubProducerAsyncClient
,
EventHubProducerClient
,
EventHubConsumerAsyncClient
,
EventHubConsumerClient
, or
EventProcessorClient
to perform operations on Azure Event Hubs.Package containing classes used for creating and configuring events that are being sent-to and received-from Azure
Event Hubs service.
-
Uses of EventData in com.azure.messaging.eventhubs
Modifier and TypeMethodDescriptionEventData.addContext
(String key, Object value) Adds a new key value pair to the existing context on Event Data.EventData.setBodyAsBinaryData
(BinaryData binaryData) Sets a new binary body and correspondingAmqpAnnotatedMessage
on the event.EventData.setContentType
(String contentType) Sets the content type.EventData.setCorrelationId
(String correlationId) Sets the correlation id.EventData.setMessageId
(String messageId) Sets the message id.Modifier and TypeMethodDescriptionSends a set of events to the associated Event Hub using a batched approach.EventHubProducerAsyncClient.send
(Iterable<EventData> events, SendOptions options) Sends a set of events to the associated Event Hub using a batched approach.void
Sends a set of events to the associated Event Hub using a batched approach.void
EventHubProducerClient.send
(Iterable<EventData> events, SendOptions options) Sends a set of events to the associated Event Hub using a batched approach. -
Uses of EventData in com.azure.messaging.eventhubs.models
Modifier and TypeMethodDescriptionPartitionEvent.getData()
Gets the event received from the partition.EventContext.getEventData()
Returns the event data received from Event Hub.Modifier and TypeMethodDescriptionEventBatchContext.getEvents()
Returns a list of event data received from Event Hub.ModifierConstructorDescriptionEventContext
(PartitionContext partitionContext, EventData eventData, CheckpointStore checkpointStore, LastEnqueuedEventProperties lastEnqueuedEventProperties) Creates an instance ofEventContext
.PartitionEvent
(PartitionContext partitionContext, EventData eventData, LastEnqueuedEventProperties lastEnqueuedEventProperties) Creates an instance of PartitionEvent.ModifierConstructorDescriptionEventBatchContext
(PartitionContext partitionContext, List<EventData> events, CheckpointStore checkpointStore, LastEnqueuedEventProperties lastEnqueuedEventProperties) Creates an instance ofEventContext
.