Package com.google.cloud.storage.spi.v1
Interface RpcBatch
public interface RpcBatch
An interface for the collection of batch operations.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
An interface for batch callbacks. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDelete
(com.google.api.services.storage.model.StorageObject storageObject, RpcBatch.Callback<Void> callback, Map<StorageRpc.Option, ?> options) Adds a call to "delete storage object" to the batch, with the providedcallback
andoptions
.void
addGet
(com.google.api.services.storage.model.StorageObject storageObject, RpcBatch.Callback<com.google.api.services.storage.model.StorageObject> callback, Map<StorageRpc.Option, ?> options) Adds a call to "get storage object" to the batch, with the providedcallback
andoptions
.void
addPatch
(com.google.api.services.storage.model.StorageObject storageObject, RpcBatch.Callback<com.google.api.services.storage.model.StorageObject> callback, Map<StorageRpc.Option, ?> options) Adds a call to "patch storage object" to the batch, with the providedcallback
andoptions
.void
submit()
Submits a batch of requests for processing using a single RPC request to Cloud Storage.
-
Method Details
-
addDelete
void addDelete(com.google.api.services.storage.model.StorageObject storageObject, RpcBatch.Callback<Void> callback, Map<StorageRpc.Option, ?> options) Adds a call to "delete storage object" to the batch, with the providedcallback
andoptions
. -
addPatch
void addPatch(com.google.api.services.storage.model.StorageObject storageObject, RpcBatch.Callback<com.google.api.services.storage.model.StorageObject> callback, Map<StorageRpc.Option, ?> options) Adds a call to "patch storage object" to the batch, with the providedcallback
andoptions
. -
addGet
void addGet(com.google.api.services.storage.model.StorageObject storageObject, RpcBatch.Callback<com.google.api.services.storage.model.StorageObject> callback, Map<StorageRpc.Option, ?> options) Adds a call to "get storage object" to the batch, with the providedcallback
andoptions
. -
submit
void submit()Submits a batch of requests for processing using a single RPC request to Cloud Storage.
-