Class AzureBlobReactiveBucketOperations
java.lang.Object
io.micronaut.objectstorage.azure.AzureBlobReactiveBucketOperations
- All Implemented Interfaces:
ReactiveBucketOperations<com.azure.storage.blob.models.BlobContainerProperties>
@EachBean(com.azure.storage.blob.BlobServiceAsyncClient.class)
@Requires(beans=com.azure.storage.blob.BlobServiceAsyncClient.class)
public class AzureBlobReactiveBucketOperations
extends Object
implements ReactiveBucketOperations<com.azure.storage.blob.models.BlobContainerProperties>
Reactive Azure bucket operations.
- Since:
- 3.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorsConstructorDescriptionAzureBlobReactiveBucketOperations(com.azure.storage.blob.BlobServiceAsyncClient blobServiceAsyncClient) -
Method Summary
Modifier and TypeMethodDescription@NonNull org.reactivestreams.Publisher<Void> Create a new bucket/container with the given name.@NonNull org.reactivestreams.Publisher<Void> Delete a bucket/container with the given name.@NonNull org.reactivestreams.Publisher<Boolean> Checks whether a bucket/container exists.@NonNull org.reactivestreams.Publisher<Optional<BucketEntry<com.azure.storage.blob.models.BlobContainerProperties>>> Retrieve an existing bucket/container.
-
Constructor Details
-
AzureBlobReactiveBucketOperations
public AzureBlobReactiveBucketOperations(com.azure.storage.blob.BlobServiceAsyncClient blobServiceAsyncClient)
-
-
Method Details
-
create
Description copied from interface:ReactiveBucketOperationsCreate a new bucket/container with the given name.- Specified by:
createin interfaceReactiveBucketOperations<com.azure.storage.blob.models.BlobContainerProperties>- Parameters:
name- The bucket/container name.- Returns:
- a completion-only publisher.
-
retrieve
public @NonNull org.reactivestreams.Publisher<Optional<BucketEntry<com.azure.storage.blob.models.BlobContainerProperties>>> retrieve(@NonNull String name) Description copied from interface:ReactiveBucketOperationsRetrieve an existing bucket/container.- Specified by:
retrievein interfaceReactiveBucketOperations<com.azure.storage.blob.models.BlobContainerProperties>- Parameters:
name- The bucket/container name.- Returns:
- a publisher that emits the provider-native bucket/container data if it exists.
-
delete
Description copied from interface:ReactiveBucketOperationsDelete a bucket/container with the given name.- Specified by:
deletein interfaceReactiveBucketOperations<com.azure.storage.blob.models.BlobContainerProperties>- Parameters:
name- The bucket/container name.- Returns:
- a completion-only publisher.
-
exists
Description copied from interface:ReactiveBucketOperationsChecks whether a bucket/container exists.- Specified by:
existsin interfaceReactiveBucketOperations<com.azure.storage.blob.models.BlobContainerProperties>- Parameters:
name- The bucket/container name.- Returns:
- a publisher that emits
trueif the bucket/container exists.
-