This is an automated email from the ASF dual-hosted git repository.
oalsafi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new ddeb057 Change default value of the enum from Amqp to AMQP
ddeb057 is described below
commit ddeb05792d4409af8a5eb1a5dfcc0beb6cfb8987
Author: Omar Al-Safi <[email protected]>
AuthorDate: Mon Aug 17 14:44:16 2020 +0200
Change default value of the enum from Amqp to AMQP
---
.../org/apache/camel/component/azure/eventhubs/azure-eventhubs.json | 4 ++--
.../src/main/docs/azure-eventhubs-component.adoc | 4 ++--
.../camel/component/azure/eventhubs/EventHubsConfiguration.java | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git
a/components/camel-azure-eventhubs/src/generated/resources/org/apache/camel/component/azure/eventhubs/azure-eventhubs.json
b/components/camel-azure-eventhubs/src/generated/resources/org/apache/camel/component/azure/eventhubs/azure-eventhubs.json
index 8b50393..bd27606 100644
---
a/components/camel-azure-eventhubs/src/generated/resources/org/apache/camel/component/azure/eventhubs/azure-eventhubs.json
+++
b/components/camel-azure-eventhubs/src/generated/resources/org/apache/camel/component/azure/eventhubs/azure-eventhubs.json
@@ -22,7 +22,7 @@
},
"componentProperties": {
"amqpRetryOptions": { "kind": "property", "displayName": "Amqp Retry
Options", "group": "common", "label": "common", "required": false, "type":
"object", "javaType": "com.azure.core.amqp.AmqpRetryOptions", "deprecated":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "Sets the retry policy
for EventHubAsyncClient. If not specified, the default retry options are used."
},
- "amqpTransportType": { "kind": "property", "displayName": "Amqp Transport
Type", "group": "common", "label": "common", "required": false, "type":
"object", "javaType": "com.azure.core.amqp.AmqpTransportType", "enum": [
"Amqp", "AmqpWebSockets" ], "deprecated": false, "secret": false,
"defaultValue": "Amqp", "configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "Sets the transport type
by which [...]
+ "amqpTransportType": { "kind": "property", "displayName": "Amqp Transport
Type", "group": "common", "label": "common", "required": false, "type":
"object", "javaType": "com.azure.core.amqp.AmqpTransportType", "enum": [
"Amqp", "AmqpWebSockets" ], "deprecated": false, "secret": false,
"defaultValue": "AMQP", "configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "Sets the transport type
by which [...]
"autoDiscoverClient": { "kind": "property", "displayName": "Auto Discover
Client", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "true", "configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "Setting the
autoDiscoverClient mechanism, if true, the component will look for a client
instance i [...]
"configuration": { "kind": "property", "displayName": "Configuration",
"group": "common", "label": "", "required": false, "type": "object",
"javaType":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"deprecated": false, "secret": false, "description": "The component
configurations" },
"blobAccessKey": { "kind": "property", "displayName": "Blob Access Key",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "secret": true,
"configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "In case you chose the
default BlobCheckpointStore, this sets access key for the associated azure
account name to be used [...]
@@ -47,7 +47,7 @@
"namespace": { "kind": "path", "displayName": "Namespace", "group":
"common", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "EventHubs namespace
created in Azure Portal" },
"eventHubName": { "kind": "path", "displayName": "Event Hub Name",
"group": "common", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "EventHubs name under a
specific namcespace" },
"amqpRetryOptions": { "kind": "parameter", "displayName": "Amqp Retry
Options", "group": "common", "label": "common", "required": false, "type":
"object", "javaType": "com.azure.core.amqp.AmqpRetryOptions", "deprecated":
false, "secret": false, "configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "Sets the retry policy
for EventHubAsyncClient. If not specified, the default retry options are used."
},
- "amqpTransportType": { "kind": "parameter", "displayName": "Amqp Transport
Type", "group": "common", "label": "common", "required": false, "type":
"object", "javaType": "com.azure.core.amqp.AmqpTransportType", "enum": [
"Amqp", "AmqpWebSockets" ], "deprecated": false, "secret": false,
"defaultValue": "Amqp", "configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "Sets the transport type
by which [...]
+ "amqpTransportType": { "kind": "parameter", "displayName": "Amqp Transport
Type", "group": "common", "label": "common", "required": false, "type":
"object", "javaType": "com.azure.core.amqp.AmqpTransportType", "enum": [
"Amqp", "AmqpWebSockets" ], "deprecated": false, "secret": false,
"defaultValue": "AMQP", "configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "Sets the transport type
by which [...]
"autoDiscoverClient": { "kind": "parameter", "displayName": "Auto Discover
Client", "group": "common", "label": "common", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "secret": false,
"defaultValue": "true", "configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "Setting the
autoDiscoverClient mechanism, if true, the component will look for a client
instance [...]
"blobAccessKey": { "kind": "parameter", "displayName": "Blob Access Key",
"group": "consumer", "label": "consumer", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "secret": true,
"configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "In case you chose the
default BlobCheckpointStore, this sets access key for the associated azure
account name to be used [...]
"blobAccountName": { "kind": "parameter", "displayName": "Blob Account
Name", "group": "consumer", "label": "consumer", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "secret": false,
"configurationClass":
"org.apache.camel.component.azure.eventhubs.EventHubsConfiguration",
"configurationField": "configuration", "description": "In case you chose the
default BlobCheckpointStore, this sets Azure account name to be used for
authentication with [...]
diff --git
a/components/camel-azure-eventhubs/src/main/docs/azure-eventhubs-component.adoc
b/components/camel-azure-eventhubs/src/main/docs/azure-eventhubs-component.adoc
index 9320bad..f4b722d 100644
---
a/components/camel-azure-eventhubs/src/main/docs/azure-eventhubs-component.adoc
+++
b/components/camel-azure-eventhubs/src/main/docs/azure-eventhubs-component.adoc
@@ -81,7 +81,7 @@ with the following path and query parameters:
|===
| Name | Description | Default | Type
| *amqpRetryOptions* (common) | Sets the retry policy for EventHubAsyncClient.
If not specified, the default retry options are used. | | AmqpRetryOptions
-| *amqpTransportType* (common) | Sets the transport type by which all the
communication with Azure Event Hubs occurs. Default value is
AmqpTransportType#AMQP. The value can be one of: Amqp, AmqpWebSockets | Amqp |
AmqpTransportType
+| *amqpTransportType* (common) | Sets the transport type by which all the
communication with Azure Event Hubs occurs. Default value is
AmqpTransportType#AMQP. The value can be one of: Amqp, AmqpWebSockets | AMQP |
AmqpTransportType
| *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if
true, the component will look for a client instance in the registry
automatically otherwise it will skip that checking. | true | boolean
| *blobAccessKey* (consumer) | 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
| *blobAccountName* (consumer) | In case you chose the default
BlobCheckpointStore, this sets Azure account name to be used for authentication
with azure blob services. | | String
@@ -115,7 +115,7 @@ The Azure Event Hubs component supports 21 options, which
are listed below.
|===
| Name | Description | Default | Type
| *amqpRetryOptions* (common) | Sets the retry policy for EventHubAsyncClient.
If not specified, the default retry options are used. | | AmqpRetryOptions
-| *amqpTransportType* (common) | Sets the transport type by which all the
communication with Azure Event Hubs occurs. Default value is
AmqpTransportType#AMQP. The value can be one of: Amqp, AmqpWebSockets | Amqp |
AmqpTransportType
+| *amqpTransportType* (common) | Sets the transport type by which all the
communication with Azure Event Hubs occurs. Default value is
AmqpTransportType#AMQP. The value can be one of: Amqp, AmqpWebSockets | AMQP |
AmqpTransportType
| *autoDiscoverClient* (common) | Setting the autoDiscoverClient mechanism, if
true, the component will look for a client instance in the registry
automatically otherwise it will skip that checking. | true | boolean
| *configuration* (common) | The component configurations | |
EventHubsConfiguration
| *blobAccessKey* (consumer) | 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
diff --git
a/components/camel-azure-eventhubs/src/main/java/org/apache/camel/component/azure/eventhubs/EventHubsConfiguration.java
b/components/camel-azure-eventhubs/src/main/java/org/apache/camel/component/azure/eventhubs/EventHubsConfiguration.java
index 6bc4ac9..29b7697 100644
---
a/components/camel-azure-eventhubs/src/main/java/org/apache/camel/component/azure/eventhubs/EventHubsConfiguration.java
+++
b/components/camel-azure-eventhubs/src/main/java/org/apache/camel/component/azure/eventhubs/EventHubsConfiguration.java
@@ -45,7 +45,7 @@ public class EventHubsConfiguration implements Cloneable {
private String sharedAccessKey;
@UriParam(label = "security", secret = true)
private String connectionString;
- @UriParam(label = "common", defaultValue = "Amqp")
+ @UriParam(label = "common", defaultValue = "AMQP")
private AmqpTransportType amqpTransportType = AmqpTransportType.AMQP;
@UriParam(label = "common")
private AmqpRetryOptions amqpRetryOptions;