Send feedback
Class CloudStorageConfiguration.Builder (0.127.26)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public static final class CloudStorageConfiguration . Builder
Methods
autoDetectRequesterPays(boolean value)
public CloudStorageConfiguration . Builder autoDetectRequesterPays ( boolean value )
Parameter
Name
Description
value
boolean
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
build()
public CloudStorageConfiguration build ()
Creates new instance without destroying builder.
maxChannelReopens(int value)
public CloudStorageConfiguration . Builder maxChannelReopens ( int value )
Parameter
Name
Description
value
int
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
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 >>
retryableHttpCodes(ImmutableList<Integer> value)
public CloudStorageConfiguration . Builder retryableHttpCodes ( ImmutableList<Integer> value )
Parameter
Name
Description
value
com.google.common.collect.ImmutableList <Integer >
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
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
userProject(String value)
public CloudStorageConfiguration . Builder userProject ( String value )
Parameter
Name
Description
value
String
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]