public final class BoxGlobalSettings extends Object
Modifier and Type | Method and Description |
---|---|
static int |
getConnectTimeout()
Returns the current global connect timeout.
|
static int |
getMaxRequestAttempts()
Returns the global maximum number of request attempts.
|
static int |
getReadTimeout()
Returns the current global read timeout.
|
static void |
setConnectTimeout(int connectTimeout)
Sets the global connect timeout.
|
static void |
setMaxRequestAttempts(int maxRequestAttempts)
Sets the global default maximum number of request attempts.
|
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 getMaxRequestAttempts()
public static void setMaxRequestAttempts(int maxRequestAttempts)
maxRequestAttempts
- maximum number of request attempts