T
- the type of the option valuepublic final class ClientOption<T> extends AbstractOption<T>
Modifier and Type | Field and Description |
---|---|
static ClientOption<ClientDecoration> |
DECORATION
The
Function that decorates the client components. |
static ClientOption<java.lang.Long> |
DEFAULT_MAX_RESPONSE_LENGTH
The default maximum allowed length of a server response.
|
static ClientOption<java.lang.Long> |
DEFAULT_RESPONSE_TIMEOUT_MILLIS
The default timeout of a server reply to a client call.
|
static ClientOption<java.lang.Long> |
DEFAULT_WRITE_TIMEOUT_MILLIS
The default timeout of a socket write.
|
static ClientOption<HttpHeaders> |
HTTP_HEADERS
The additional HTTP headers to send with requests.
|
Modifier and Type | Method and Description |
---|---|
ClientOptionValue<T> |
newValue(T value)
Creates a new value of this option.
|
static <T> ClientOption<T> |
valueOf(java.lang.String name)
Returns the
ClientOption of the specified name. |
public static final ClientOption<java.lang.Long> DEFAULT_WRITE_TIMEOUT_MILLIS
public static final ClientOption<java.lang.Long> DEFAULT_RESPONSE_TIMEOUT_MILLIS
public static final ClientOption<java.lang.Long> DEFAULT_MAX_RESPONSE_LENGTH
public static final ClientOption<HttpHeaders> HTTP_HEADERS
SessionProtocol
is HTTP.public static final ClientOption<ClientDecoration> DECORATION
Function
that decorates the client components.public static <T> ClientOption<T> valueOf(java.lang.String name)
ClientOption
of the specified name.public ClientOptionValue<T> newValue(T value)