Class ADAuthBasedStorageClient

    • Method Detail

      • buildBlobServiceClient

        protected com.azure.storage.blob.BlobServiceClient buildBlobServiceClient​(com.azure.core.http.HttpClient httpClient,
                                                                                  com.azure.core.util.Configuration configuration,
                                                                                  com.azure.storage.common.policy.RequestRetryOptions retryOptions,
                                                                                  AzureCloudConfig azureCloudConfig)
                                                                           throws java.net.MalformedURLException,
                                                                                  java.lang.InterruptedException,
                                                                                  java.util.concurrent.ExecutionException
        Description copied from class: StorageClient
        Build BlobServiceClient.
        Specified by:
        buildBlobServiceClient in class StorageClient
        Parameters:
        httpClient - HttpClient object.
        configuration - Configuration object.
        retryOptions - RetryOptions object.
        azureCloudConfig - AzureCloudConfig object.
        Returns:
        BlobServiceClient object.
        Throws:
        java.net.MalformedURLException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • handleExceptionAndHintRetry

        protected boolean handleExceptionAndHintRetry​(com.azure.storage.blob.models.BlobStorageException blobStorageException)
        Description copied from class: StorageClient
        Check if the exception can be handled and return a flag indicating if it can be retried. Note that if this method changes state of this class, then it should do it in a thread safe way.
        Specified by:
        handleExceptionAndHintRetry in class StorageClient
        Parameters:
        blobStorageException - BlobStorageException object.
        Returns:
        true if the operation can be retried. false otherwise.