Interface RpcBatch (2.2.3)

public interface RpcBatch

An interface for the collection of batch operations.

Methods

addDelete(StorageObject storageObject, RpcBatch.Callback<Void> callback, Map<StorageRpc.Option,?> options)

public abstract void addDelete(StorageObject storageObject, RpcBatch.Callback<Void> callback, Map<StorageRpc.Option,?> options)

Adds a call to "delete storage object" to the batch, with the provided callback and options.

Parameters
Name Description
storageObject com.google.api.services.storage.model.StorageObject
callback Callback<Void>
options Map<Option,?>

addGet(StorageObject storageObject, RpcBatch.Callback<StorageObject> callback, Map<StorageRpc.Option,?> options)

public abstract void addGet(StorageObject storageObject, RpcBatch.Callback<StorageObject> callback, Map<StorageRpc.Option,?> options)

Adds a call to "get storage object" to the batch, with the provided callback and options.

Parameters
Name Description
storageObject com.google.api.services.storage.model.StorageObject
callback Callback<com.google.api.services.storage.model.StorageObject>
options Map<Option,?>

addPatch(StorageObject storageObject, RpcBatch.Callback<StorageObject> callback, Map<StorageRpc.Option,?> options)

public abstract void addPatch(StorageObject storageObject, RpcBatch.Callback<StorageObject> callback, Map<StorageRpc.Option,?> options)

Adds a call to "patch storage object" to the batch, with the provided callback and options.

Parameters
Name Description
storageObject com.google.api.services.storage.model.StorageObject
callback Callback<com.google.api.services.storage.model.StorageObject>
options Map<Option,?>

submit()

public abstract void submit()

Submits a batch of requests for processing using a single RPC request to Cloud Storage.