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.Builder
autoDetectRequesterPays(boolean value)
CloudStorageConfiguration.Builder
blockSize(int value)
Sets the block size in bytes that should be used for each HTTP request to the API.CloudStorageConfiguration
build()
Creates new instance without destroying builder.CloudStorageConfiguration.Builder
maxChannelReopens(int value)
CloudStorageConfiguration.Builder
permitEmptyPathComponents(boolean value)
Configures whether or not we should throw an exception when encountering object names containing superfluous slashes, e.g.CloudStorageConfiguration.Builder
reopenableExceptions(com.google.common.collect.ImmutableList<Class<? extends Exception>> values)
CloudStorageConfiguration.Builder
retryableHttpCodes(com.google.common.collect.ImmutableList<Integer> value)
CloudStorageConfiguration.Builder
stripPrefixSlash(boolean value)
Configures if the '/' prefix on absolute object names should be removed before I/O.CloudStorageConfiguration.Builder
usePseudoDirectories(boolean value)
Configures if paths with a trailing slash should be treated as fake directories.CloudStorageConfiguration.Builder
userProject(String value)
CloudStorageConfiguration.Builder
workingDirectory(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 anotherCloudStorageFileSystem
object.- Throws:
IllegalArgumentException
- ifpath
is 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.
-
-