Class 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());

    • Constructor Detail

      • 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 Detail

      • 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)
      • 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