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,
AppendBlobAccessConditions appendBlobAccessConditions,
com.microsoft.rest.v2.Context context)
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,
com.microsoft.rest.v2.Context context)
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, com.microsoft.rest.v2.Context context)
headers
- BlobHTTPHeaders
metadata
- Metadata
accessConditions
- BlobAccessConditions
context
- Context
offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline
's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE
or null
. Each context object is
immutable. The withContext
with data method creates a new Context
object that refers to its
parent, forming a linked list.public io.reactivex.Single<AppendBlobAppendBlockResponse> appendBlock(io.reactivex.Flowable<ByteBuffer> data, long length, AppendBlobAccessConditions appendBlobAccessConditions, com.microsoft.rest.v2.Context context)
Flowable
must produce the same data each time it is subscribed to.data
- The data to write to the blob. Note that this Flowable
must be replayable if retries are enabled
(the default). In other words, the Flowable must produce the same data each time it is subscribed to.length
- The exact length of the data. It is important that this value match precisely the length of the data
emitted by the Flowable
.appendBlobAccessConditions
- AppendBlobAccessConditions
context
- Context
offers a means of passing arbitrary data (key/value pairs) to an
HttpPipeline
's policy objects. Most applications do not need to pass
arbitrary data to the pipeline and can pass Context.NONE
or null
. Each context object is
immutable. The withContext
with data method creates a new Context
object that refers to its
parent, forming a linked list.This documentation was released into the public domain.