| Package | Description |
|---|---|
| com.microsoft.azure.eventhubs | |
| com.microsoft.azure.eventhubs.impl |
| 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 |
PartitionReceiver.closeSync() |
void |
EventHubClient.closeSync() |
static CompletableFuture<EventHubClient> |
EventHubClient.create(String connectionString,
RetryPolicy retryPolicy,
ScheduledExecutorService executor)
Factory method to create an instance of
EventHubClient using the supplied connectionString. |
static CompletableFuture<EventHubClient> |
EventHubClient.create(String connectionString,
ScheduledExecutorService executor)
Factory method to create an instance of
EventHubClient using the supplied connectionString. |
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). |
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 EventHubClient |
EventHubClient.createSync(String connectionString,
RetryPolicy retryPolicy,
ScheduledExecutorService executor)
Synchronous version of
EventHubClient.create(String, ScheduledExecutorService). |
static EventHubClient |
EventHubClient.createSync(String connectionString,
ScheduledExecutorService executor)
Synchronous version of
EventHubClient.create(String, ScheduledExecutorService). |
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. |
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<EventHubClient> |
EventHubClientImpl.create(String connectionString,
RetryPolicy retryPolicy,
ScheduledExecutorService executor) |
EventDataBatch |
EventHubClientImpl.createBatch(BatchOptions options) |
CompletableFuture<PartitionReceiver> |
EventHubClientImpl.createEpochReceiver(String consumerGroupName,
String partitionId,
EventPosition eventPosition,
long epoch) |
CompletableFuture<PartitionReceiver> |
EventHubClientImpl.createEpochReceiver(String consumerGroupName,
String partitionId,
EventPosition eventPosition,
long epoch,
ReceiverOptions receiverOptions) |
CompletableFuture<PartitionSender> |
EventHubClientImpl.createPartitionSender(String partitionId) |
CompletableFuture<PartitionReceiver> |
EventHubClientImpl.createReceiver(String consumerGroupName,
String partitionId,
EventPosition eventPosition) |
CompletableFuture<PartitionReceiver> |
EventHubClientImpl.createReceiver(String consumerGroupName,
String partitionId,
EventPosition eventPosition,
ReceiverOptions receiverOptions) |
T |
ExceptionUtil.SyncFactory.execute() |
T |
ExceptionUtil.SyncFactoryWithIOException.execute() |
void |
ExceptionUtil.SyncFactoryVoid.execute() |
T |
ExceptionUtil.SyncFactoryWithIllegalArgException.execute() |
static <T> T |
ExceptionUtil.sync(ExceptionUtil.SyncFactory<T> factory) |
static void |
ExceptionUtil.syncVoid(ExceptionUtil.SyncFactoryVoid factory) |
static <T> T |
ExceptionUtil.syncWithIllegalArgException(ExceptionUtil.SyncFactoryWithIllegalArgException<T> factory) |
static <T> T |
ExceptionUtil.syncWithIOException(ExceptionUtil.SyncFactoryWithIOException<T> factory) |
Copyright © 2019. All rights reserved.