Skip to content

Commit

Permalink
CAMEL-13453 - Regen
Browse files Browse the repository at this point in the history
  • Loading branch information
oscerd committed May 2, 2019
1 parent 6ea2d92 commit 2c325c4
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 1 deletion.
11 changes: 10 additions & 1 deletion components/camel-azure/src/main/docs/azure-queue-component.adoc
Expand Up @@ -35,7 +35,16 @@ to("file://queuedirectory");


// component options: START
The Azure Storage Queue Service component has no options.
The Azure Storage Queue Service component supports 2 options, which are listed below.



[width="100%",cols="2,5,^1,2",options="header"]
|===
| Name | Description | Default | Type
| *configuration* (advanced) | The Queue Service configuration | | QueueService Configuration
| *resolveProperty Placeholders* (advanced) | Whether the component should resolve property placeholders on itself when starting. Only properties which are of String type can use property placeholders. | true | boolean
|===
// component options: END


Expand Down
Expand Up @@ -17,6 +17,9 @@
package org.apache.camel.component.azure.queue.springboot;

import javax.annotation.Generated;
import com.microsoft.azure.storage.StorageCredentials;
import com.microsoft.azure.storage.queue.CloudQueue;
import org.apache.camel.component.azure.queue.QueueServiceOperations;
import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
import org.springframework.boot.context.properties.ConfigurationProperties;

Expand All @@ -37,13 +40,26 @@ public class QueueServiceComponentConfiguration
* is enabled by default.
*/
private Boolean enabled;
/**
* The Queue Service configuration
*/
private QueueServiceConfigurationNestedConfiguration configuration;
/**
* Whether the component should resolve property placeholders on itself when
* starting. Only properties which are of String type can use property
* placeholders.
*/
private Boolean resolvePropertyPlaceholders = true;

public QueueServiceConfigurationNestedConfiguration getConfiguration() {
return configuration;
}

public void setConfiguration(
QueueServiceConfigurationNestedConfiguration configuration) {
this.configuration = configuration;
}

public Boolean getResolvePropertyPlaceholders() {
return resolvePropertyPlaceholders;
}
Expand All @@ -52,4 +68,104 @@ public void setResolvePropertyPlaceholders(
Boolean resolvePropertyPlaceholders) {
this.resolvePropertyPlaceholders = resolvePropertyPlaceholders;
}

public static class QueueServiceConfigurationNestedConfiguration {
public static final Class CAMEL_NESTED_CLASS = org.apache.camel.component.azure.queue.QueueServiceConfiguration.class;
/**
* The queue resource name
*/
private String queueName;
/**
* The queue service client
*/
private CloudQueue azureQueueClient;
/**
* Queue service operation hint to the producer
*/
private QueueServiceOperations operation = QueueServiceOperations.listQueues;
/**
* Message Time To Live in seconds
*/
private Integer messageTimeToLive;
/**
* Message Visibility Delay in seconds
*/
private Integer messageVisibilityDelay;
/**
* Set a prefix which can be used for listing the queues
*/
private String queuePrefix;
/**
* Set the Azure account name
*/
private String accountName;
/**
* Set the storage credentials, required in most cases
*/
private StorageCredentials credentials;

public String getQueueName() {
return queueName;
}

public void setQueueName(String queueName) {
this.queueName = queueName;
}

public CloudQueue getAzureQueueClient() {
return azureQueueClient;
}

public void setAzureQueueClient(CloudQueue azureQueueClient) {
this.azureQueueClient = azureQueueClient;
}

public QueueServiceOperations getOperation() {
return operation;
}

public void setOperation(QueueServiceOperations operation) {
this.operation = operation;
}

public Integer getMessageTimeToLive() {
return messageTimeToLive;
}

public void setMessageTimeToLive(Integer messageTimeToLive) {
this.messageTimeToLive = messageTimeToLive;
}

public Integer getMessageVisibilityDelay() {
return messageVisibilityDelay;
}

public void setMessageVisibilityDelay(Integer messageVisibilityDelay) {
this.messageVisibilityDelay = messageVisibilityDelay;
}

public String getQueuePrefix() {
return queuePrefix;
}

public void setQueuePrefix(String queuePrefix) {
this.queuePrefix = queuePrefix;
}

public String getAccountName() {
return accountName;
}

public void setAccountName(String accountName) {
this.accountName = accountName;
}

public StorageCredentials getCredentials() {
return credentials;
}

public void setCredentials(StorageCredentials credentials) {
this.credentials = credentials;
}
}
}

0 comments on commit 2c325c4

Please sign in to comment.