public final class BoxGlobalSettings extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getConnectTimeout()
Returns the current global connect timeout.
|
static int |
getMaxRetryAttempts()
Returns the global maximum number of times an API request will be retried after an error response
is received.
|
static int |
getReadTimeout()
Returns the current global read timeout.
|
static void |
setConnectTimeout(int connectTimeout)
Sets the global connect timeout.
|
static void |
setMaxRetryAttempts(int attempts)
Sets the global maximum number of times an API request will be retried after an error response
is received.
|
static void |
setReadTimeout(int readTimeout)
Sets the global read timeout.
|
public static int getConnectTimeout()
public static void setConnectTimeout(int connectTimeout)
connectTimeout
- timeout in millisecondspublic static int getReadTimeout()
public static void setReadTimeout(int readTimeout)
readTimeout
- timeout in millisecondspublic static int getMaxRetryAttempts()
public static void setMaxRetryAttempts(int attempts)
attempts
- maximum number of request attempts