Class PutOptions

java.lang.Object
org.jclouds.blobstore.options.PutOptions
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AWSS3PutOptions, PutOptions.ImmutablePutOptions

public class PutOptions extends Object implements Cloneable
Contains options supported in the put blob operation.

Usage

The recommended way to instantiate a PutOptions object is to statically import PutOptions.* and invoke a static creation method followed by an instance mutator (if needed):

import static org.jclouds.blobstore.options.PutOptions.Builder.* eTag = blobStore.putBlob("container", blob, multipart());

  • Field Details

  • Constructor Details

    • PutOptions

      public PutOptions()
    • PutOptions

      public PutOptions(boolean multipart)
    • PutOptions

      protected PutOptions(boolean multipart, boolean useCustomExecutor, com.google.common.util.concurrent.ListeningExecutorService customExecutor)
      Used for clone
      Parameters:
      multipart -
      customExecutor -
    • PutOptions

      public PutOptions(com.google.common.util.concurrent.ListeningExecutorService customExecutor)
  • Method Details

    • getBlobAccess

      public BlobAccess getBlobAccess()
    • getUseCustomExecutor

      public boolean getUseCustomExecutor()
    • getCustomExecutor

      public com.google.common.util.concurrent.ListeningExecutorService getCustomExecutor()
    • setCustomExecutor

      public PutOptions setCustomExecutor(com.google.common.util.concurrent.ListeningExecutorService customExecutor)
    • setBlobAccess

      public PutOptions setBlobAccess(BlobAccess blobAccess)
    • isMultipart

      public boolean isMultipart()
    • multipart

      public PutOptions multipart()
      split large blobs into pieces, if supported by the provider. Equivalent to multipart(true)
    • multipart

      public PutOptions multipart(boolean val)
      whether to split large blobs into pieces, if supported by the provider
    • multipart

      public PutOptions multipart(com.google.common.util.concurrent.ListeningExecutorService customExecutor)
      Whether to split large blobs into pieces, if supported by the provider, using a custom executor
      Parameters:
      customExecutor - User-provided ListeningExecutorService
    • clone

      public PutOptions clone()
      Overrides:
      clone in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object