Class BaseAppConfigurationPolicy
java.lang.Object
com.azure.spring.cloud.config.pipline.policies.BaseAppConfigurationPolicy
- All Implemented Interfaces:
com.azure.core.http.policy.HttpPipelinePolicy
public final class BaseAppConfigurationPolicy
extends Object
implements com.azure.core.http.policy.HttpPipelinePolicy
HttpPipelinePolicy for connecting to Azure App Configuration.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBaseAppConfigurationPolicy
(Boolean isDev, Boolean isKeyVaultConfigured, Integer replicaCount) App Configuration Http Pipeline Policy -
Method Summary
Modifier and TypeMethodDescriptionMono<com.azure.core.http.HttpResponse>
process
(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next) static void
setWatchRequests
(Boolean watchRequests) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.core.http.policy.HttpPipelinePolicy
getPipelinePosition, processSync
-
Field Details
-
USER_AGENT
Format of User Agent
-
-
Constructor Details
-
BaseAppConfigurationPolicy
public BaseAppConfigurationPolicy(Boolean isDev, Boolean isKeyVaultConfigured, Integer replicaCount) App Configuration Http Pipeline Policy- Parameters:
isDev
- is using dev profileisKeyVaultConfigured
- is key vault configuredreplicaCount
- number of replicas being used. Should equal the number of endpoints minus one.
-
-
Method Details
-
process
public Mono<com.azure.core.http.HttpResponse> process(com.azure.core.http.HttpPipelineCallContext context, com.azure.core.http.HttpPipelineNextPolicy next) - Specified by:
process
in interfacecom.azure.core.http.policy.HttpPipelinePolicy
-
setWatchRequests
- Parameters:
watchRequests
- the watchRequests to set
-