Search in sources :

Example 1 with RequestOptions

use of com.microsoft.azure.storage.RequestOptions in project jackrabbit-oak by apache.

the class AzureBlobStoreBackend method getAzureContainer.

protected CloudBlobContainer getAzureContainer() throws DataStoreException {
    CloudBlobContainer container = Utils.getBlobContainer(connectionString, containerName);
    RequestOptions requestOptions = container.getServiceClient().getDefaultRequestOptions();
    if (retryPolicy != null) {
        requestOptions.setRetryPolicyFactory(retryPolicy);
    }
    if (requestTimeout != null) {
        requestOptions.setTimeoutIntervalInMs(requestTimeout);
    }
    return container;
}
Also used : BlobRequestOptions(com.microsoft.azure.storage.blob.BlobRequestOptions) RequestOptions(com.microsoft.azure.storage.RequestOptions) CloudBlobContainer(com.microsoft.azure.storage.blob.CloudBlobContainer)

Aggregations

RequestOptions (com.microsoft.azure.storage.RequestOptions)1 BlobRequestOptions (com.microsoft.azure.storage.blob.BlobRequestOptions)1 CloudBlobContainer (com.microsoft.azure.storage.blob.CloudBlobContainer)1