T - the type of the option valuepublic final class ClientOption<T> extends AbstractOption<T>
| Modifier and Type | Method and Description |
|---|---|
ClientOptionValue<T> |
newValue(T value)
Creates a new value of this option.
|
static <T> ClientOption<T> |
valueOf(String name)
Returns the
ClientOption of the specified name. |
public static final ClientOption<ClientFactory> FACTORY
ClientFactory used for creating a client.public static final ClientOption<Long> WRITE_TIMEOUT_MILLIS
@Deprecated public static final ClientOption<Long> DEFAULT_WRITE_TIMEOUT_MILLIS
WRITE_TIMEOUT_MILLIS.public static final ClientOption<Long> RESPONSE_TIMEOUT_MILLIS
@Deprecated public static final ClientOption<Long> DEFAULT_RESPONSE_TIMEOUT_MILLIS
RESPONSE_TIMEOUT_MILLIS.public static final ClientOption<Long> MAX_RESPONSE_LENGTH
@Deprecated public static final ClientOption<Long> DEFAULT_MAX_RESPONSE_LENGTH
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 final ClientOption<Supplier<RequestId>> REQUEST_ID_GENERATOR
public static final ClientOption<Function<? super Endpoint,? extends EndpointGroup>> ENDPOINT_REMAPPER
ClientBuilder.endpointRemapper(Function)public static <T> ClientOption<T> valueOf(String name)
ClientOption of the specified name.public ClientOptionValue<T> newValue(T value)
Copyright © 2020 LeanCloud. All rights reserved.