AzureServiceClient Class
- java.
lang. Object - com.
azure. resourcemanager. resources. fluentcore. AzureServiceClient
- com.
public abstract class AzureServiceClient
ServiceClient is the abstraction for accessing REST operations and their payload data types.
Constructor Summary
Modifier | Constructor | Description |
---|---|---|
protected | AzureServiceClient(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, AzureEnvironment environment) |
Creates a new instance of AzureServiceClient. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Mono<U> |
<T,U>getLroFinalResultOrError(AsyncPollResponse<PollResult<T>,U> response)
Gets the final result, or an error, based on last async poll response. |
Poller |
<T,U>getLroResult(Mono<Response<Flux<ByteBuffer>>> lroInit, HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context)
Gets long running operation result. |
Context |
getContext()
Gets default client context. |
abstract Duration |
getDefaultPollInterval()
Gets The default poll interval for long-running operation. |
Http |
getHttpPipeline()
Gets The HTTP pipeline to send requests through. |
Context |
mergeContext(Context context)
Merges default client context with provided context. |
Methods inherited from java.lang.Object
Constructor Details
AzureServiceClient
protected AzureServiceClient(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, AzureEnvironment environment)
Creates a new instance of AzureServiceClient.
Parameters:
Method Details
<T,U>getLroFinalResultOrError
public Mono
Gets the final result, or an error, based on last async poll response.
Parameters:
Returns:
<T,U>getLroResult
public PollerFlux<>
Gets long running operation result.
Parameters:
Returns:
getContext
public Context getContext()
Gets default client context.
Returns:
getDefaultPollInterval
public abstract Duration getDefaultPollInterval()
Gets The default poll interval for long-running operation.
Returns:
getHttpPipeline
public HttpPipeline getHttpPipeline()
Gets The HTTP pipeline to send requests through.
Returns:
mergeContext
public Context mergeContext(Context context)
Merges default client context with provided context.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for