次の方法で共有


BatchOperation<C,P,R> クラス

  • java.lang.Object
    • Iterable<Map.Entry<StorageRequest<C, P, R>, P>>
      • com.microsoft.azure.storage.BatchOperation<C,P,R>

型パラメーター

C

このバッチが対象とするストレージ サービスの ServiceClient 型。

P

REST 呼び出しを行う親オブジェクトの型。

R

バッチの個々の要求の戻り値の型。

public class BatchOperation<C extends ServiceClient,P,R>

バッチ要求として送信される操作のコレクション。 バッチに追加された要求の順序を維持します。

メソッドの概要

修飾子と型 メソッドと説明
final void addSubOperation(final StorageRequest<C, P, R> request, final P parent)

subOperations コレクションに操作を追加します。

StorageRequest<C, BatchOperation<C, P, R>, Map<P, R>> batchImpl(C client, final RequestOptions requestOptions)

このオブジェクトの StorageRequest 収集された要求に基づいて、バッチ操作の を作成します。

abstract R convertResponse(BatchSubResponse response)

バッチ サブ応答を、基本的な HTTP 形式からバッチ処理される操作の応答の種類に変換します。

UUID getBatchId()
Iterator<Map.Entry<StorageRequest<C, P, R>, P>> iterator()

メソッドの詳細

addSubOperation

protected final void addSubOperation(final StorageRequest request, final P parent)

subOperations コレクションに操作を追加します。

Parameters:

request - 追加する要求。
parent

Throws:

IllegalArgumentException - このバッチが既に subOperations の最大サイズである場合は、 をスローします。 以下を参照してください。BATCH_MAX_REQUESTS

batchImpl

protected StorageRequest, Map> batchImpl(C client, final RequestOptions requestOptions)

このオブジェクトの StorageRequest 収集された要求に基づいて、バッチ操作の を作成します。

Parameters:

client - ServiceClientこの要求を行う 。
requestOptions - この要求の要求オプション。

Returns:

ビルドされた要求。

convertResponse

protected abstract R convertResponse(BatchSubResponse response)

バッチ サブ応答を、基本的な HTTP 形式からバッチ処理される操作の応答の種類に変換します。

Parameters:

response - HTTP 応答のオブジェクト モデル。

Returns:

解析された応答。

getBatchId

public UUID getBatchId()

iterator

public Iterator<><>, P>> iterator()

適用対象