public class PublishOperation extends Object
| Constructor and Description |
|---|
PublishOperation() |
| Modifier and Type | Method and Description |
|---|---|
void |
bulkPublish(AzureEventHubsConnection connection,
List<Event> events,
PartitionInfo partitionParameters,
String correlationId,
String contentType,
int maxBatchSizeInBytes)
Send an Events in Bulk to a specified Event Hub
|
void |
publish(AzureEventHubsConnection connection,
Event event,
String correlationId,
String contentType,
PartitionInfo partitionParameters)
Send an Event to a specified Event Hub
|
@DisplayName(value="Send a single event")
@MediaType(value="*/*",
strict=false)
@Throws(value=AzureEventHubErrorProvider.class)
public void publish(@Connection
AzureEventHubsConnection connection,
@Content
Event event,
@Optional
String correlationId,
@Optional
String contentType,
@ParameterGroup(name="Partition Info")
PartitionInfo partitionParameters)
throws IOException
connection - The connection to Sendevent - The event's contentIOException@DisplayName(value="Bulk Publish")
@MediaType(value="*/*",
strict=false)
@Throws(value=AzureEventHubErrorProvider.class)
public void bulkPublish(@Connection
AzureEventHubsConnection connection,
@Content
List<Event> events,
@ParameterGroup(name="Partition Info")
PartitionInfo partitionParameters,
@Optional
String correlationId,
@Optional
String contentType,
@Optional(defaultValue="0")
int maxBatchSizeInBytes)
throws IOException
connection - The connection to Sendevents - The event's contentIOExceptionCopyright © 2025 MuleSoft, Inc.. All rights reserved.