-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update retry configuration for Azure SDKs service builder in Spring t…
…ier (#25104) * Update retry configuration for Azure SDKs service. * Refactor the spring-cloud-azure-core AzureProperties, using interfaces instead of type. * Refactor the configuration properties hierarchy to make sure configuration processor could work. Co-authored-by: Xiaolu Dai <xiada@microsoft.com>
- Loading branch information
Showing
100 changed files
with
2,188 additions
and
949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...re/src/main/java/com/azure/spring/cloud/autoconfigure/properties/AbstractAzureAmqpCP.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.spring.cloud.autoconfigure.properties; | ||
|
||
import com.azure.spring.cloud.autoconfigure.properties.core.AbstractAzureServiceCP; | ||
import com.azure.spring.cloud.autoconfigure.properties.core.client.AmqpClientCP; | ||
import com.azure.spring.cloud.autoconfigure.properties.core.proxy.ProxyCP; | ||
import com.azure.spring.cloud.autoconfigure.properties.core.retry.RetryCP; | ||
import org.springframework.boot.context.properties.NestedConfigurationProperty; | ||
|
||
/** | ||
* | ||
*/ | ||
public abstract class AbstractAzureAmqpCP extends AbstractAzureServiceCP { | ||
|
||
@NestedConfigurationProperty | ||
protected final AmqpClientCP client = new AmqpClientCP(); | ||
|
||
@NestedConfigurationProperty | ||
protected final RetryCP retry = new RetryCP(); | ||
|
||
@NestedConfigurationProperty | ||
protected final ProxyCP proxy = new ProxyCP(); | ||
|
||
@Override | ||
public AmqpClientCP getClient() { | ||
return client; | ||
} | ||
|
||
@Override | ||
public RetryCP getRetry() { | ||
return retry; | ||
} | ||
|
||
@Override | ||
public ProxyCP getProxy() { | ||
return proxy; | ||
} | ||
} |
29 changes: 0 additions & 29 deletions
29
...azure/spring/cloud/autoconfigure/properties/AbstractAzureAmqpConfigurationProperties.java
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
...re/src/main/java/com/azure/spring/cloud/autoconfigure/properties/AbstractAzureHttpCP.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.spring.cloud.autoconfigure.properties; | ||
|
||
import com.azure.spring.cloud.autoconfigure.properties.core.AbstractAzureServiceCP; | ||
import com.azure.spring.cloud.autoconfigure.properties.core.client.HttpClientCP; | ||
import com.azure.spring.cloud.autoconfigure.properties.core.proxy.HttpProxyCP; | ||
import com.azure.spring.cloud.autoconfigure.properties.core.retry.HttpRetryCP; | ||
import org.springframework.boot.context.properties.NestedConfigurationProperty; | ||
|
||
/** | ||
* Configuration properties base class for all Azure Http clients. | ||
*/ | ||
public abstract class AbstractAzureHttpCP extends AbstractAzureServiceCP { | ||
|
||
@NestedConfigurationProperty | ||
protected final HttpClientCP client = new HttpClientCP(); | ||
|
||
@NestedConfigurationProperty | ||
protected final HttpProxyCP proxy = new HttpProxyCP(); | ||
|
||
@NestedConfigurationProperty | ||
protected final HttpRetryCP retry = new HttpRetryCP(); | ||
|
||
@Override | ||
public HttpClientCP getClient() { | ||
return client; | ||
} | ||
|
||
@Override | ||
public HttpProxyCP getProxy() { | ||
return proxy; | ||
} | ||
|
||
@Override | ||
public HttpRetryCP getRetry() { | ||
return retry; | ||
} | ||
} |
29 changes: 0 additions & 29 deletions
29
...azure/spring/cloud/autoconfigure/properties/AbstractAzureHttpConfigurationProperties.java
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
...va/com/azure/spring/cloud/autoconfigure/properties/AmqpClientConfigurationProperties.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.