Class CloudStorageConfiguration.Builder (0.123.28)

public static final class CloudStorageConfiguration.Builder

Inheritance

java.lang.Object > CloudStorageConfiguration.Builder

Methods

autoDetectRequesterPays(boolean value)

public CloudStorageConfiguration.Builder autoDetectRequesterPays(boolean value)
Parameter
NameDescription
valueboolean
Returns
TypeDescription
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
NameDescription
valueint
Returns
TypeDescription
CloudStorageConfiguration.Builder

build()

public CloudStorageConfiguration build()

Creates new instance without destroying builder.

Returns
TypeDescription
CloudStorageConfiguration

maxChannelReopens(int value)

public CloudStorageConfiguration.Builder maxChannelReopens(int value)
Parameter
NameDescription
valueint
Returns
TypeDescription
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
NameDescription
valueboolean
Returns
TypeDescription
CloudStorageConfiguration.Builder

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

public CloudStorageConfiguration.Builder reopenableExceptions(ImmutableList<Class<? extends Exception>> values)
Parameter
NameDescription
valuescom.google.common.collect.ImmutableList<Class<? extends java.lang.Exception>>
Returns
TypeDescription
CloudStorageConfiguration.Builder

retryableHttpCodes(ImmutableList<Integer> value)

public CloudStorageConfiguration.Builder retryableHttpCodes(ImmutableList<Integer> value)
Parameter
NameDescription
valuecom.google.common.collect.ImmutableList<Integer>
Returns
TypeDescription
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
NameDescription
valueboolean
Returns
TypeDescription
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
NameDescription
valueboolean
Returns
TypeDescription
CloudStorageConfiguration.Builder

userProject(String value)

public CloudStorageConfiguration.Builder userProject(String value)
Parameter
NameDescription
valueString
Returns
TypeDescription
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
NameDescription
pathString
Returns
TypeDescription
CloudStorageConfiguration.Builder