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 class
PutOptions.Builder
static class
PutOptions.ImmutablePutOptions
-
Field Summary
Fields Modifier and Type Field Description static PutOptions.ImmutablePutOptions
NONE
-
Constructor Summary
Constructors Modifier Constructor Description PutOptions()
PutOptions(boolean multipart)
protected
PutOptions(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 PutOptions
clone()
BlobAccess
getBlobAccess()
com.google.common.util.concurrent.ListeningExecutorService
getCustomExecutor()
boolean
getUseCustomExecutor()
boolean
isMultipart()
PutOptions
multipart()
split large blobs into pieces, if supported by the provider.PutOptions
multipart(boolean val)
whether to split large blobs into pieces, if supported by the providerPutOptions
multipart(com.google.common.util.concurrent.ListeningExecutorService customExecutor)
Whether to split large blobs into pieces, if supported by the provider, using a custom executorPutOptions
setBlobAccess(BlobAccess blobAccess)
PutOptions
setCustomExecutor(com.google.common.util.concurrent.ListeningExecutorService customExecutor)
String
toString()
-
-
-
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()
-
-