| Constructor and Description |
|---|
EventHubsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
EventHubsConfiguration |
copy() |
com.azure.core.amqp.AmqpRetryOptions |
getAmqpRetryOptions()
Sets the retry policy for
EventHubAsyncClient. |
com.azure.core.amqp.AmqpTransportType |
getAmqpTransportType()
Sets the transport type by which all the communication with Azure Event Hubs occurs.
|
String |
getBlobAccessKey()
In case you chose the default BlobCheckpointStore, this sets access key for the associated azure account name to
be used for authentication with azure blob services
|
String |
getBlobAccountName()
In case you chose the default BlobCheckpointStore, this sets Azure account name to be used for authentication
with azure blob services.
|
String |
getBlobContainerName()
In case you chose the default BlobCheckpointStore, this sets the blob container that shall be used by the
BlobCheckpointStore to store the checkpoint offsets
|
com.azure.storage.common.StorageSharedKeyCredential |
getBlobStorageSharedKeyCredential()
In case you chose the default BlobCheckpointStore, StorageSharedKeyCredential can be injected to create the azure
client, this holds the important authentication information
|
com.azure.messaging.eventhubs.CheckpointStore |
getCheckpointStore()
Sets the
CheckpointStore the EventProcessorClient will use for storing partition ownership and
checkpoint information. |
String |
getConnectionString()
Instead of supplying namespace, sharedAccessKey, sharedAccessName ...
|
String |
getConsumerGroupName()
Sets the name of the consumer group this consumer is associated with.
|
String |
getEventHubName()
EventHubs name under a specific namcespace
|
Map<String,com.azure.messaging.eventhubs.models.EventPosition> |
getEventPosition()
Sets the map containing the event position to use for each partition if a checkpoint for the partition does not
exist in
CheckpointStore. |
String |
getNamespace()
EventHubs namespace created in Azure Portal
|
String |
getPartitionId()
Sets the identifier of the Event Hub partition that the
events will be sent to. |
String |
getPartitionKey()
Sets a hashing key to be provided for the batch of events, which instructs the Event Hubs service to map this key
to a specific partition.
|
int |
getPrefetchCount()
Sets the count used by the receiver to control the number of events the Event Hub consumer will actively receive
and queue locally without regard to whether a receive operation is currently active.
|
com.azure.messaging.eventhubs.EventHubProducerAsyncClient |
getProducerAsyncClient()
Sets the
EventHubProducerAsyncClient.An asynchronous producer responsible for transmitting
EventData to a specific Event Hub, grouped together in batches. |
String |
getSharedAccessKey()
The generated value for the SharedAccessName
|
String |
getSharedAccessName()
The name you chose for your EventHubs SAS keys
|
boolean |
isAutoDiscoverClient()
Setting the autoDiscoverClient mechanism, if true, the component will look for a client instance in the registry
automatically otherwise it will skip that checking.
|
void |
setAmqpRetryOptions(com.azure.core.amqp.AmqpRetryOptions amqpRetryOptions) |
void |
setAmqpTransportType(com.azure.core.amqp.AmqpTransportType amqpTransportType) |
void |
setAutoDiscoverClient(boolean autoDiscoverClient) |
void |
setBlobAccessKey(String blobAccessKey) |
void |
setBlobAccountName(String blobAccountName) |
void |
setBlobContainerName(String blobContainerName) |
void |
setBlobStorageSharedKeyCredential(com.azure.storage.common.StorageSharedKeyCredential blobStorageSharedKeyCredential) |
void |
setCheckpointStore(com.azure.messaging.eventhubs.CheckpointStore checkpointStore) |
void |
setConnectionString(String connectionString) |
void |
setConsumerGroupName(String consumerGroupName) |
void |
setEventHubName(String eventHubName) |
void |
setEventPosition(Map<String,com.azure.messaging.eventhubs.models.EventPosition> eventPosition) |
void |
setNamespace(String namespace) |
void |
setPartitionId(String partitionId) |
void |
setPartitionKey(String partitionKey) |
void |
setPrefetchCount(int prefetchCount) |
void |
setProducerAsyncClient(com.azure.messaging.eventhubs.EventHubProducerAsyncClient producerAsyncClient) |
void |
setSharedAccessKey(String sharedAccessKey) |
void |
setSharedAccessName(String sharedAccessName) |
public String getNamespace()
public void setNamespace(String namespace)
public String getEventHubName()
public void setEventHubName(String eventHubName)
public String getSharedAccessName()
public void setSharedAccessName(String sharedAccessName)
public String getSharedAccessKey()
public void setSharedAccessKey(String sharedAccessKey)
public String getConnectionString()
public void setConnectionString(String connectionString)
public com.azure.core.amqp.AmqpTransportType getAmqpTransportType()
AmqpTransportType.AMQP.public void setAmqpTransportType(com.azure.core.amqp.AmqpTransportType amqpTransportType)
public com.azure.core.amqp.AmqpRetryOptions getAmqpRetryOptions()
EventHubAsyncClient. If not specified, the default retry options are used.public void setAmqpRetryOptions(com.azure.core.amqp.AmqpRetryOptions amqpRetryOptions)
public String getConsumerGroupName()
"$Default".public void setConsumerGroupName(String consumerGroupName)
public int getPrefetchCount()
public void setPrefetchCount(int prefetchCount)
public com.azure.messaging.eventhubs.EventHubProducerAsyncClient getProducerAsyncClient()
EventHubProducerAsyncClient.An asynchronous producer responsible for transmitting
EventData to a specific Event Hub, grouped together in batches. Depending on the
options specified when creating an , the events may be
automatically routed to an available partition or specific to a partition. Use by this component to produce the
data in camel producer.public void setProducerAsyncClient(com.azure.messaging.eventhubs.EventHubProducerAsyncClient producerAsyncClient)
public boolean isAutoDiscoverClient()
public void setAutoDiscoverClient(boolean autoDiscoverClient)
public String getPartitionId()
events will be sent to. If the
identifier is not specified, the Event Hubs service will be responsible for routing events that are sent to an
available partition.public void setPartitionId(String partitionId)
public String getPartitionKey()
identifier of the position be specified directly when
sending the batch.public void setPartitionKey(String partitionKey)
public com.azure.messaging.eventhubs.CheckpointStore getCheckpointStore()
CheckpointStore the EventProcessorClient will use for storing partition ownership and
checkpoint information.
Users can, optionally, provide their own implementation of CheckpointStore which will store ownership and
checkpoint information.
BlobCheckpointStore which
stores all checkpoint offsets into Azure Blob Storagepublic void setCheckpointStore(com.azure.messaging.eventhubs.CheckpointStore checkpointStore)
public String getBlobAccountName()
public void setBlobAccountName(String blobAccountName)
public String getBlobAccessKey()
public void setBlobAccessKey(String blobAccessKey)
public String getBlobContainerName()
public void setBlobContainerName(String blobContainerName)
public com.azure.storage.common.StorageSharedKeyCredential getBlobStorageSharedKeyCredential()
public void setBlobStorageSharedKeyCredential(com.azure.storage.common.StorageSharedKeyCredential blobStorageSharedKeyCredential)
public Map<String,com.azure.messaging.eventhubs.models.EventPosition> getEventPosition()
CheckpointStore. This map is keyed off of the partition id. If there is no checkpoint in
CheckpointStore and there is no entry in this map, the processing of the partition will start from
latest position.public void setEventPosition(Map<String,com.azure.messaging.eventhubs.models.EventPosition> eventPosition)
public EventHubsConfiguration copy()
Apache Camel