public final class AppendBlobURL extends BlobURL
ContainerURL
object. This class does not hold any state about a particular append blob but is instead a
convenient way of sending off appropriate requests to the resource on the service. Please refer to the
Azure DocsModifier and Type | Field and Description |
---|---|
static int |
MAX_APPEND_BLOCK_BYTES
Indicates the maximum number of bytes that can be sent in a call to appendBlock.
|
static int |
MAX_BLOCKS
Indicates the maximum number of blocks allowed in an append blob.
|
storageClient
Constructor and Description |
---|
AppendBlobURL(URL url,
com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a
AppendBlobURL object pointing to the account specified by the URL and using the provided
pipeline to make HTTP requests. |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Single<AppendBlobAppendBlockResponse> |
appendBlock(io.reactivex.Flowable<ByteBuffer> data,
long length,
BlobAccessConditions accessConditions)
Commits a new block of data to the end of the existing append blob.
|
io.reactivex.Single<AppendBlobCreateResponse> |
create(BlobHTTPHeaders headers,
Metadata metadata,
BlobAccessConditions accessConditions)
Creates a 0-length append blob.
|
AppendBlobURL |
withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a new
AppendBlobURL with the given pipeline. |
AppendBlobURL |
withSnapshot(String snapshot)
Creates a new
AppendBlobURL with the given snapshot. |
abortCopyFromURL, acquireLease, breakLease, changeLease, createSnapshot, delete, download, getAccountInfo, getProperties, releaseLease, renewLease, setHTTPHeaders, setMetadata, setTier, startCopyFromURL, toAppendBlobURL, toBlockBlobURL, toPageBlobURL, undelete
appendToURLPath, createPipeline, toString, toURL
public static final int MAX_APPEND_BLOCK_BYTES
public static final int MAX_BLOCKS
public AppendBlobURL(URL url, com.microsoft.rest.v2.http.HttpPipeline pipeline)
AppendBlobURL
object pointing to the account specified by the URL and using the provided
pipeline to make HTTP requests.url
- A URL
to an Azure Storage append blob.pipeline
- A HttpPipeline
which configures the behavior of HTTP exchanges. Please refer to the createPipeline
method on StorageURL
for more information.public AppendBlobURL withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
AppendBlobURL
with the given pipeline.withPipeline
in class BlobURL
pipeline
- An HttpPipeline
object to process HTTP transactions.AppendBlobURL
object with the given pipeline.public AppendBlobURL withSnapshot(String snapshot) throws MalformedURLException, UnknownHostException
AppendBlobURL
with the given snapshot.withSnapshot
in class BlobURL
snapshot
- A String
of the snapshot identifier.AppendBlobURL
object with the given pipeline.MalformedURLException
- Appending the specified snapshot produced an invalid URL.UnknownHostException
- If the url contains an improperly formatted ipaddress or unknown host address.public io.reactivex.Single<AppendBlobCreateResponse> create(BlobHTTPHeaders headers, Metadata metadata, BlobAccessConditions accessConditions)
headers
- BlobHTTPHeaders
metadata
- Metadata
accessConditions
- BlobAccessConditions
public io.reactivex.Single<AppendBlobAppendBlockResponse> appendBlock(io.reactivex.Flowable<ByteBuffer> data, long length, BlobAccessConditions accessConditions)
data
- The data to write to the blob.length
- The exact length of the data. It is important that this value match precisely the length of the data
emitted by the Flowable
.accessConditions
- BlobAccessConditions
This documentation was released into the public domain.