CloudBlockBlob.commitBlockList Method

Definition

Overloads

commitBlockList(final Iterable<BlockEntry> blockList)

Commits a block list to the storage service. In order to be written as part of a blob, a block must have been successfully written to the server in a prior uploadBlock operation.

commitBlockList(final Iterable<BlockEntry> blockList, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Commits a block list to the storage service using the specified lease ID, request options, and operation context. In order to be written as part of a blob, a block must have been successfully written to the server in a prior uploadBlock operation.

commitBlockList(final Iterable<BlockEntry> blockList)

Commits a block list to the storage service. In order to be written as part of a blob, a block must have been successfully written to the server in a prior uploadBlock operation.

public void commitBlockList(final Iterable<BlockEntry> blockList)
Parameters
blockList
final Iterable<BlockEntry>

An enumerable collection of BlockEntry objects that represents the list block items being committed. The size field is ignored.

Exceptions

If a storage service error occurred.

commitBlockList(final Iterable<BlockEntry> blockList, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Commits a block list to the storage service using the specified lease ID, request options, and operation context. In order to be written as part of a blob, a block must have been successfully written to the server in a prior uploadBlock operation.

public void commitBlockList(final Iterable<BlockEntry> blockList, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
blockList
final Iterable<BlockEntry>

An enumerable collection of BlockEntry objects that represents the list block items being committed. The size field is ignored.

accessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the blob.

options
BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudBlobClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Exceptions

If a storage service error occurred.

Applies to