| Modifier and Type | Class and Description |
|---|---|
class |
AuthorizationFailedException
Authorization failed exception is thrown when error is encountered during authorizing user's permission to run the intended operations.
|
class |
CommunicationException
This exception is thrown when there is a client side connectivity issue.
|
class |
IllegalEntityException
This exception is thrown for the following reasons:
When the entity user attempted to connect does not exist
The entity user wants to connect is disabled
|
class |
OperationCancelledException
This exception is thrown when the underlying AMQP layer encounter an abnormal link abort or disconnect of connection in an unexpected fashion.
|
class |
PayloadSizeExceededException
this exception is thrown when user attempts to send a event data or brokered message that has exceeded the
allowed payload size as defined by the service.
|
class |
QuotaExceededException |
class |
ReceiverDisconnectedException
This exception is thrown when a EventHubReceiver is being disconnected because of one of the
following reason:
user attempts to connect a non-epoch receiver to a event hub partition, when there is an epoch receiver connected to the partition.
|
class |
ServerBusyException
Server busy exception is thrown when the current entity's activity has put excessive load onto the service.
|
class |
TimeoutException
This exception is thrown when the operation has exceeded the predetermined time limit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PartitionSender.closeSync() |
void |
EventHubClient.closeSync() |
void |
PartitionReceiver.closeSync() |
default EventDataBatch |
EventHubClient.createBatch()
Creates an Empty Collection of
EventData. |
EventDataBatch |
EventHubClient.createBatch(BatchOptions options)
Creates an Empty Collection of
EventData. |
CompletableFuture<PartitionReceiver> |
EventHubClient.createEpochReceiver(String consumerGroupName,
String partitionId,
EventPosition eventPosition,
long epoch)
Create a Epoch based EventHub receiver with given partition id and start receiving from the beginning of the partition stream.
|
CompletableFuture<PartitionReceiver> |
EventHubClient.createEpochReceiver(String consumerGroupName,
String partitionId,
EventPosition eventPosition,
long epoch,
ReceiverOptions receiverOptions)
Create a Epoch based EventHub receiver with given partition id and start receiving from the beginning of the partition stream.
|
default PartitionReceiver |
EventHubClient.createEpochReceiverSync(String consumerGroupName,
String partitionId,
EventPosition eventPosition,
long epoch)
Synchronous version of
EventHubClient.createEpochReceiver(String, String, EventPosition, long). |
default PartitionReceiver |
EventHubClient.createEpochReceiverSync(String consumerGroupName,
String partitionId,
EventPosition eventPosition,
long epoch,
ReceiverOptions receiverOptions)
Synchronous version of
EventHubClient.createEpochReceiver(String, String, EventPosition, long). |
static CompletableFuture<EventHubClient> |
EventHubClient.createFromConnectionString(String connectionString,
RetryPolicy retryPolicy,
ScheduledExecutorService executor)
Factory method to create an instance of
EventHubClient using the supplied connectionString. |
static CompletableFuture<EventHubClient> |
EventHubClient.createFromConnectionString(String connectionString,
ScheduledExecutorService executor)
Factory method to create an instance of
EventHubClient using the supplied connectionString. |
static EventHubClient |
EventHubClient.createFromConnectionStringSync(String connectionString,
RetryPolicy retryPolicy,
ScheduledExecutorService executor)
Synchronous version of
EventHubClient.createFromConnectionString(String, ScheduledExecutorService). |
static EventHubClient |
EventHubClient.createFromConnectionStringSync(String connectionString,
ScheduledExecutorService executor)
Synchronous version of
EventHubClient.createFromConnectionString(String, ScheduledExecutorService). |
CompletableFuture<PartitionSender> |
EventHubClient.createPartitionSender(String partitionId)
Create a
PartitionSender which can publish EventData's directly to a specific EventHub partition (sender type iii. |
default PartitionSender |
EventHubClient.createPartitionSenderSync(String partitionId)
Synchronous version of
EventHubClient.createPartitionSender(String). |
CompletableFuture<PartitionReceiver> |
EventHubClient.createReceiver(String consumerGroupName,
String partitionId,
EventPosition eventPosition)
Create the EventHub receiver with given partition id and start receiving from the specified starting offset.
|
CompletableFuture<PartitionReceiver> |
EventHubClient.createReceiver(String consumerGroupName,
String partitionId,
EventPosition eventPosition,
ReceiverOptions receiverOptions)
Create the EventHub receiver with given partition id and start receiving from the specified starting offset.
|
default PartitionReceiver |
EventHubClient.createReceiverSync(String consumerGroupName,
String partitionId,
EventPosition eventPosition)
Synchronous version of
EventHubClient.createReceiver(String, String, EventPosition). |
default PartitionReceiver |
EventHubClient.createReceiverSync(String consumerGroupName,
String partitionId,
EventPosition eventPosition,
ReceiverOptions receiverOptions)
Synchronous version of
EventHubClient.createReceiver(String, String, EventPosition). |
static CompletableFuture<EventHubClient> |
EventHubClient.createWithAzureActiveDirectory(URI endpointAddress,
String eventHubName,
AzureActiveDirectoryTokenProvider.AuthenticationCallback authCallback,
String authority,
ScheduledExecutorService executor,
EventHubClientOptions options)
Factory method to create an instance of
EventHubClient using the supplied namespace endpoint address, eventhub name and authentication mechanism. |
static CompletableFuture<EventHubClient> |
EventHubClient.createWithTokenProvider(URI endpointAddress,
String eventHubName,
ITokenProvider tokenProvider,
ScheduledExecutorService executor,
EventHubClientOptions options)
Factory method to create an instance of
EventHubClient using the supplied namespace endpoint address, eventhub name and authentication mechanism. |
default Iterable<EventData> |
PartitionReceiver.receiveSync(int maxEventCount)
Synchronous version of
PartitionReceiver.receive(int). |
default void |
PartitionSender.sendSync(EventData data)
Synchronous version of
PartitionSender.send(EventData) Api. |
default void |
EventHubClient.sendSync(EventData data)
Synchronous version of
EventHubClient.send(EventData). |
default void |
PartitionSender.sendSync(EventDataBatch eventDatas)
Synchronous version of
PartitionSender.send(EventDataBatch) |
default void |
EventHubClient.sendSync(EventDataBatch eventDatas)
Synchronous version of
EventHubClient.send(EventDataBatch). |
default void |
EventHubClient.sendSync(EventData eventData,
String partitionKey)
Synchronous version of
EventHubClient.send(EventData, String). |
default void |
PartitionSender.sendSync(Iterable<EventData> eventDatas)
Synchronous version of
PartitionSender.send(Iterable) . |
default void |
EventHubClient.sendSync(Iterable<EventData> eventDatas)
Synchronous version of
EventHubClient.send(Iterable). |
default void |
EventHubClient.sendSync(Iterable<EventData> eventDatas,
String partitionKey)
Synchronous version of
EventHubClient.send(Iterable, String). |
void |
ReceiverOptions.setPrefetchCount(int prefetchCount)
Set the number of events that can be pre-fetched and cached at the
PartitionReceiver. |
Copyright © 2019 Microsoft Corporation. All rights reserved.