public static final class CloudStorageConfiguration.Builder extends Object
CloudStorageConfiguration
.Modifier and Type | Method and 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.
|
public CloudStorageConfiguration.Builder workingDirectory(String path)
CloudStorageFileSystem
object.IllegalArgumentException
- if path
is not absolute.public CloudStorageConfiguration.Builder permitEmptyPathComponents(boolean value)
a//b
.public CloudStorageConfiguration.Builder stripPrefixSlash(boolean value)
If you disable this feature, please take into consideration that all paths created from a URI will have the leading slash.
public CloudStorageConfiguration.Builder usePseudoDirectories(boolean value)
public CloudStorageConfiguration.Builder blockSize(int value)
The default is .
public CloudStorageConfiguration.Builder maxChannelReopens(int value)
public CloudStorageConfiguration.Builder userProject(String value)
public CloudStorageConfiguration.Builder autoDetectRequesterPays(boolean value)
public CloudStorageConfiguration.Builder retryableHttpCodes(com.google.common.collect.ImmutableList<Integer> value)
public CloudStorageConfiguration.Builder reopenableExceptions(com.google.common.collect.ImmutableList<Class<? extends Exception>> values)
public CloudStorageConfiguration build()
Copyright © 2019 Google LLC. All rights reserved.