public final class AppendBlobURL extends BlobURL
| Modifier 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.
|
| Constructor and Description |
|---|
AppendBlobURL(java.net.URL url,
com.microsoft.rest.v2.http.HttpPipeline pipeline)
Creates a new
AppendBlobURL object. |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<AppendBlobAppendBlockHeaders,java.lang.Void>> |
appendBlock(io.reactivex.Flowable<java.nio.ByteBuffer> data,
long length,
BlobAccessConditions accessConditions)
Commits a new block of data to the end of the existing append blob.
|
io.reactivex.Single<com.microsoft.rest.v2.RestResponse<BlobPutHeaders,java.lang.Void>> |
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(java.lang.String snapshot)
Creates a new
AppendBlobURL with the given snapshot. |
abortCopy, acquireLease, breakLease, changeLease, createSnapshot, delete, getBlob, getPropertiesAndMetadata, releaseLease, renewLease, setMetadata, setProperties, startCopy, toAppendBlobURL, toBlockBlobURL, toPageBlobURLcreatePipeline, toString, toURLpublic static final int MAX_APPEND_BLOCK_BYTES
public static final int MAX_BLOCKS
public AppendBlobURL(java.net.URL url,
com.microsoft.rest.v2.http.HttpPipeline pipeline)
AppendBlobURL object.url - A URL to a page blob.pipeline - An HttpPipeline for sending requests.public AppendBlobURL withPipeline(com.microsoft.rest.v2.http.HttpPipeline pipeline)
AppendBlobURL with the given pipeline.withPipeline in class BlobURLpipeline - An HttpPipeline object to set.AppendBlobURL object with the given pipeline.public AppendBlobURL withSnapshot(java.lang.String snapshot) throws java.net.MalformedURLException, java.net.UnknownHostException
AppendBlobURL with the given snapshot.withSnapshot in class BlobURLsnapshot - A String of the snapshot identifier.AppendBlobURL object with the given pipeline.java.net.MalformedURLExceptionjava.net.UnknownHostExceptionpublic io.reactivex.Single<com.microsoft.rest.v2.RestResponse<BlobPutHeaders,java.lang.Void>> create(BlobHTTPHeaders headers, Metadata metadata, BlobAccessConditions accessConditions)
headers - A BlobHTTPHeaders object that specifies which properties to set on the blob.metadata - A Metadata object that specifies key value pairs to set on the blob.accessConditions - A BlobAccessConditions object that specifies under which conditions the operation should
complete.Single which emits a RestResponse object containing the BlobPutHeaders and Void
body if successful.public io.reactivex.Single<com.microsoft.rest.v2.RestResponse<AppendBlobAppendBlockHeaders,java.lang.Void>> appendBlock(io.reactivex.Flowable<java.nio.ByteBuffer> data, long length, BlobAccessConditions accessConditions)
data - A Flowable which emits byte[] which represents the data to write to the blob.length - A long indicating how long the total data is.accessConditions - A BlobAccessConditions object that specifies under which conditions the operation should
complete.Single which emits the RestResponse object containing the AppendBlobAppendBlockHeaders
and Void body if successful.