Package org.jclouds.blobstore.options
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());
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPutOptions.Builderstatic classPutOptions.ImmutablePutOptions
-
Field Summary
Fields Modifier and Type Field Description static PutOptions.ImmutablePutOptionsNONE
-
Constructor Summary
Constructors Modifier Constructor Description PutOptions()PutOptions(boolean multipart)protectedPutOptions(boolean multipart, boolean useCustomExecutor, com.google.common.util.concurrent.ListeningExecutorService customExecutor)Used for clonePutOptions(com.google.common.util.concurrent.ListeningExecutorService customExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutOptionsclone()BlobAccessgetBlobAccess()com.google.common.util.concurrent.ListeningExecutorServicegetCustomExecutor()booleangetUseCustomExecutor()booleanisMultipart()PutOptionsmultipart()split large blobs into pieces, if supported by the provider.PutOptionsmultipart(boolean val)whether to split large blobs into pieces, if supported by the providerPutOptionsmultipart(com.google.common.util.concurrent.ListeningExecutorService customExecutor)Whether to split large blobs into pieces, if supported by the provider, using a custom executorPutOptionssetBlobAccess(BlobAccess blobAccess)PutOptionssetCustomExecutor(com.google.common.util.concurrent.ListeningExecutorService customExecutor)StringtoString()
-
-
-
Field Detail
-
NONE
public static final PutOptions.ImmutablePutOptions NONE
-
-
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)
-
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 tomultipart(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()
-
-