Interface RpcBatch


public interface RpcBatch
An interface for the collection of batch operations.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    An interface for batch callbacks.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 provided callback and options.
    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 provided callback and options.
    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 provided callback and options.
    void
    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 provided callback and options.
    • 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 provided callback and options.
    • 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 provided callback and options.
    • submit

      void submit()
      Submits a batch of requests for processing using a single RPC request to Cloud Storage.