Class CloudStorageConfiguration.Builder
java.lang.Object
com.google.cloud.storage.contrib.nio.CloudStorageConfiguration.Builder
- Enclosing class:
- CloudStorageConfiguration
Builder for
CloudStorageConfiguration.-
Method Summary
Modifier and TypeMethodDescriptionautoDetectRequesterPays(boolean value) blockSize(int value) Sets the block size in bytes that should be used for each HTTP request to the API.build()Creates new instance without destroying builder.maxChannelReopens(int value) permitEmptyPathComponents(boolean value) Configures whether or not we should throw an exception when encountering object names containing superfluous slashes, e.g.reopenableExceptions(com.google.common.collect.ImmutableList<Class<? extends Exception>> values) retryableHttpCodes(com.google.common.collect.ImmutableList<Integer> value) stripPrefixSlash(boolean value) Configures if the '/' prefix on absolute object names should be removed before I/O.usePseudoDirectories(boolean value) Configures if paths with a trailing slash should be treated as fake directories.userProject(String value) workingDirectory(String path) Changes current working directory for new filesystem.
-
Method Details
-
workingDirectory
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
Configures whether or not we should throw an exception when encountering object names containing superfluous slashes, e.g.a//b. -
stripPrefixSlash
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
Configures if paths with a trailing slash should be treated as fake directories. -
blockSize
Sets the block size in bytes that should be used for each HTTP request to the API.The default is 2097152.
-
maxChannelReopens
-
userProject
-
autoDetectRequesterPays
-
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
Creates new instance without destroying builder.
-