Class CloudStorageConfiguration.Builder (0.127.26)

public static final class CloudStorageConfiguration.Builder

Inheritance

java.lang.Object > CloudStorageConfiguration.Builder

Methods

autoDetectRequesterPays(boolean value)

public CloudStorageConfiguration.Builder autoDetectRequesterPays(boolean value)
Parameter
Name Description
value boolean
Returns
Type Description
CloudStorageConfiguration.Builder

blockSize(int value)

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 {@value CloudStorageFileSystem#BLOCK_SIZE_DEFAULT}.

Parameter
Name Description
value int
Returns
Type Description
CloudStorageConfiguration.Builder

build()

public CloudStorageConfiguration build()

Creates new instance without destroying builder.

Returns
Type Description
CloudStorageConfiguration

maxChannelReopens(int value)

public CloudStorageConfiguration.Builder maxChannelReopens(int value)
Parameter
Name Description
value int
Returns
Type Description
CloudStorageConfiguration.Builder

permitEmptyPathComponents(boolean value)

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.

Parameter
Name Description
value boolean
Returns
Type Description
CloudStorageConfiguration.Builder

reopenableExceptions(ImmutableList<Class<? extends Exception>> values)

public CloudStorageConfiguration.Builder reopenableExceptions(ImmutableList<Class<? extends Exception>> values)
Parameter
Name Description
values com.google.common.collect.ImmutableList<Class<? extends java.lang.Exception>>
Returns
Type Description
CloudStorageConfiguration.Builder

retryableHttpCodes(ImmutableList<Integer> value)

public CloudStorageConfiguration.Builder retryableHttpCodes(ImmutableList<Integer> value)
Parameter
Name Description
value com.google.common.collect.ImmutableList<Integer>
Returns
Type Description
CloudStorageConfiguration.Builder

stripPrefixSlash(boolean value)

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.

Parameter
Name Description
value boolean
Returns
Type Description
CloudStorageConfiguration.Builder

usePseudoDirectories(boolean value)

public CloudStorageConfiguration.Builder usePseudoDirectories(boolean value)

Configures if paths with a trailing slash should be treated as fake directories.

Parameter
Name Description
value boolean
Returns
Type Description
CloudStorageConfiguration.Builder

userProject(String value)

public CloudStorageConfiguration.Builder userProject(String value)
Parameter
Name Description
value String
Returns
Type Description
CloudStorageConfiguration.Builder

workingDirectory(String path)

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 another CloudStorageFileSystem object.

Parameter
Name Description
path String
Returns
Type Description
CloudStorageConfiguration.Builder