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
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 ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionPutOptions
(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
Modifier and TypeMethodDescriptionclone()
com.google.common.util.concurrent.ListeningExecutorService
boolean
boolean
split large blobs into pieces, if supported by the provider.multipart
(boolean val) whether to split large blobs into pieces, if supported by the providermultipart
(com.google.common.util.concurrent.ListeningExecutorService customExecutor) Whether to split large blobs into pieces, if supported by the provider, using a custom executorsetBlobAccess
(BlobAccess blobAccess) setCustomExecutor
(com.google.common.util.concurrent.ListeningExecutorService customExecutor) toString()
-
Field Details
-
NONE
-
-
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
-
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
-
isMultipart
public boolean isMultipart() -
multipart
split large blobs into pieces, if supported by the provider. Equivalent tomultipart(true)
-
multipart
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
-
toString
-