| Package | Description |
|---|---|
| com.azure.messaging.eventhubs |
Package containing classes for creating
EventHubProducerAsyncClient,
EventHubProducerClient,
EventHubConsumerAsyncClient,
EventHubConsumerClient, or
EventProcessorClient to perform operations on Azure Event Hubs. |
| com.azure.messaging.eventhubs.models |
Package containing classes used for creating and configuring events that are being sent-to and received-from Azure
Event Hubs service.
|
| Modifier and Type | Method and Description |
|---|---|
Flux<PartitionEvent> |
EventHubConsumerAsyncClient.receiveFromPartition(String partitionId,
EventPosition startingPosition)
Consumes events from a single partition starting at
startingPosition. |
Flux<PartitionEvent> |
EventHubConsumerAsyncClient.receiveFromPartition(String partitionId,
EventPosition startingPosition,
ReceiveOptions receiveOptions)
Consumes events from a single partition starting at
startingPosition with a set of receive options. |
com.azure.core.util.IterableStream<PartitionEvent> |
EventHubConsumerClient.receiveFromPartition(String partitionId,
int maximumMessageCount,
EventPosition startingPosition)
Receives a batch of
events from the Event Hub partition. |
com.azure.core.util.IterableStream<PartitionEvent> |
EventHubConsumerClient.receiveFromPartition(String partitionId,
int maximumMessageCount,
EventPosition startingPosition,
Duration maximumWaitTime)
Receives a batch of
events from the Event Hub partition. |
com.azure.core.util.IterableStream<PartitionEvent> |
EventHubConsumerClient.receiveFromPartition(String partitionId,
int maximumMessageCount,
EventPosition startingPosition,
Duration maximumWaitTime,
ReceiveOptions receiveOptions)
Receives a batch of
events from the Event Hub partition. |
| Modifier and Type | Method and Description |
|---|---|
static EventPosition |
EventPosition.earliest()
Corresponds to the location of the first event present in the partition.
|
static EventPosition |
EventPosition.fromEnqueuedTime(Instant enqueuedDateTime)
Creates a position at the given
Instant. |
static EventPosition |
EventPosition.fromOffset(long offset)
Creates a position to an event in the partition at the provided offset.
|
static EventPosition |
EventPosition.fromSequenceNumber(long sequenceNumber)
Creates a position to an event in the partition at the provided sequence number.
|
static EventPosition |
EventPosition.fromSequenceNumber(long sequenceNumber,
boolean isInclusive)
Creates a position at the given sequence number.
|
static EventPosition |
EventPosition.latest()
Corresponds to the end of the partition, where no more events are currently enqueued.
|
Copyright © 2020 Microsoft Corporation. All rights reserved.