Class CloudStorageConfiguration.Builder
- java.lang.Object
-
- com.google.cloud.storage.contrib.nio.CloudStorageConfiguration.Builder
-
- Enclosing class:
- CloudStorageConfiguration
public static final class CloudStorageConfiguration.Builder extends Object
Builder forCloudStorageConfiguration.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudStorageConfiguration.BuilderautoDetectRequesterPays(boolean value)CloudStorageConfiguration.BuilderblockSize(int value)Sets the block size in bytes that should be used for each HTTP request to the API.CloudStorageConfigurationbuild()Creates new instance without destroying builder.CloudStorageConfiguration.BuildermaxChannelReopens(int value)CloudStorageConfiguration.BuilderpermitEmptyPathComponents(boolean value)Configures whether or not we should throw an exception when encountering object names containing superfluous slashes, e.g.CloudStorageConfiguration.BuilderreopenableExceptions(com.google.common.collect.ImmutableList<Class<? extends Exception>> values)CloudStorageConfiguration.BuilderretryableHttpCodes(com.google.common.collect.ImmutableList<Integer> value)CloudStorageConfiguration.BuilderstripPrefixSlash(boolean value)Configures if the '/' prefix on absolute object names should be removed before I/O.CloudStorageConfiguration.BuilderusePseudoDirectories(boolean value)Configures if paths with a trailing slash should be treated as fake directories.CloudStorageConfiguration.BuilderuserProject(String value)CloudStorageConfiguration.BuilderworkingDirectory(String path)Changes current working directory for new filesystem.
-
-
-
Method Detail
-
workingDirectory
public CloudStorageConfiguration.Builder workingDirectory(String path)
Changes current working directory for new filesystem. This defaults to the root directory. The working directory cannot be changed once it's been set. You'll need to create anotherCloudStorageFileSystemobject.- Throws:
IllegalArgumentException- ifpathis not absolute.
-
permitEmptyPathComponents
public CloudStorageConfiguration.Builder permitEmptyPathComponents(boolean value)
Configures whether or not we should throw an exception when encountering object names containing superfluous slashes, e.g.a//b.
-
stripPrefixSlash
public CloudStorageConfiguration.Builder stripPrefixSlash(boolean value)
Configures if the '/' prefix on absolute object names should be removed before I/O.If you disable this feature, please take into consideration that all paths created from a URI will have the leading slash.
-
usePseudoDirectories
public CloudStorageConfiguration.Builder usePseudoDirectories(boolean value)
Configures if paths with a trailing slash should be treated as fake directories.
-
blockSize
public CloudStorageConfiguration.Builder blockSize(int value)
Sets the block size in bytes that should be used for each HTTP request to the API.The default is 2097152.
-
maxChannelReopens
public CloudStorageConfiguration.Builder maxChannelReopens(int value)
-
userProject
public CloudStorageConfiguration.Builder userProject(String value)
-
autoDetectRequesterPays
public CloudStorageConfiguration.Builder autoDetectRequesterPays(boolean value)
-
retryableHttpCodes
public CloudStorageConfiguration.Builder retryableHttpCodes(com.google.common.collect.ImmutableList<Integer> value)
-
reopenableExceptions
public CloudStorageConfiguration.Builder reopenableExceptions(com.google.common.collect.ImmutableList<Class<? extends Exception>> values)
-
build
public CloudStorageConfiguration build()
Creates new instance without destroying builder.
-
-