BlobsStorage Class
- java.
lang. Object - com.
microsoft. bot. azure. blobs. BlobsStorage
- com.
Implements
public class BlobsStorage
implements Storage
Implements Storage using Azure Storage Blobs. This class uses a single Azure Storage Blob Container. Each entity or StoreItem is serialized into a JSON string and stored in an individual text blob. Each blob is named after the store item key, which is encoded so that it conforms a valid blob name. an entity is an StoreItem, the storage object will set the entity's StoreItem property value to the blob's ETag upon read. Afterward, an BlobRequestConditions with the ETag value will be generated during Write. New entities start with a null ETag.
Constructor Summary
| Constructor | Description |
|---|---|
| BlobsStorage(String dataConnectionString, String containerName) |
Initializes a new instance of the BlobsStorage class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.concurrent.CompletableFuture<java.lang.Void> |
delete(String[] keys)
Deletes entity blobs from the configured container. |
| java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.lang.Object>> |
read(String[] keys)
Retrieve entities from the configured blob container. |
| java.util.concurrent.CompletableFuture<java.lang.Void> |
write(Map<String,Object> changes)
Stores a new entity in the configured blob container. |
Methods inherited from java.lang.Object
Constructor Details
BlobsStorage
public BlobsStorage(String dataConnectionString, String containerName)
Initializes a new instance of the BlobsStorage class.
Parameters:
Method Details
delete
public CompletableFuture
Deletes entity blobs from the configured container.
Parameters:
Returns:
read
public CompletableFuture
Retrieve entities from the configured blob container.
Parameters:
Returns:
write
public CompletableFuture
Stores a new entity in the configured blob container.
Parameters:
Returns: