public class PutOptions extends Object implements Cloneable
import static org.jclouds.blobstore.options.PutOptions.Builder.*
eTag = blobStore.putBlob("container", blob, multipart());
Modifier and Type | Class and Description |
---|---|
static class |
PutOptions.Builder |
static class |
PutOptions.ImmutablePutOptions |
Modifier and Type | Field and Description |
---|---|
static PutOptions.ImmutablePutOptions |
NONE |
Modifier | Constructor and Description |
---|---|
|
PutOptions() |
|
PutOptions(boolean multipart) |
protected |
PutOptions(boolean multipart,
boolean useCustomExecutor,
com.google.common.util.concurrent.ListeningExecutorService customExecutor)
Used for clone
|
|
PutOptions(com.google.common.util.concurrent.ListeningExecutorService customExecutor) |
Modifier and Type | Method and 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 provider
|
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
|
PutOptions |
setBlobAccess(BlobAccess blobAccess) |
PutOptions |
setCustomExecutor(com.google.common.util.concurrent.ListeningExecutorService customExecutor) |
String |
toString() |
public static final PutOptions.ImmutablePutOptions NONE
public PutOptions()
public PutOptions(boolean multipart)
protected PutOptions(boolean multipart, boolean useCustomExecutor, com.google.common.util.concurrent.ListeningExecutorService customExecutor)
multipart
- customExecutor
- public PutOptions(com.google.common.util.concurrent.ListeningExecutorService customExecutor)
public BlobAccess getBlobAccess()
public boolean getUseCustomExecutor()
public com.google.common.util.concurrent.ListeningExecutorService getCustomExecutor()
public PutOptions setCustomExecutor(com.google.common.util.concurrent.ListeningExecutorService customExecutor)
public PutOptions setBlobAccess(BlobAccess blobAccess)
public boolean isMultipart()
public PutOptions multipart()
multipart(true)
public PutOptions multipart(boolean val)
public PutOptions multipart(com.google.common.util.concurrent.ListeningExecutorService customExecutor)
customExecutor
- User-provided ListeningExecutorServicepublic PutOptions clone()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.