public class Options extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Options.Option
The set of options.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
CONNECTION_TIMEOUT
Default connection timeout.
|
private static Map<Options.Option,Object> |
options
The stored options.
|
private static long |
SOCKET_TIMEOUT
Default socket timeout.
|
| Constructor and Description |
|---|
Options() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getOption(Options.Option option)
Gets the value of an option.
|
static void |
refresh()
Refreshes the options, and restores defaults.
|
static void |
setOption(Options.Option option,
Object value)
Sets an option.
|
public static final long CONNECTION_TIMEOUT
private static final long SOCKET_TIMEOUT
private static final Map<Options.Option,Object> options
public static void setOption(Options.Option option, Object value)
option - the option, must not be nullvalue - the valuepublic static Object getOption(Options.Option option)
option - the option, must not be nullpublic static void refresh()
Copyright © 2013–2015 Wisdom Framework. All rights reserved.