public abstract class AbstractClientFactory extends Object implements ClientFactory
ClientFactory implementation.DEFAULT| Constructor and Description |
|---|
AbstractClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
newClient(Scheme scheme,
Endpoint endpoint,
Class<T> clientType,
ClientOptions options)
|
<T> T |
newClient(Scheme scheme,
Endpoint endpoint,
Class<T> clientType,
ClientOptionValue<?>... options)
|
<T> T |
newClient(Scheme scheme,
Endpoint endpoint,
String path,
Class<T> clientType,
ClientOptionValue<?>... options)
|
<T> T |
newClient(String uri,
Class<T> clientType,
ClientOptions options)
Creates a new client that connects to the specified
uri. |
<T> T |
newClient(String uri,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
uri. |
<T> T |
newClient(URI uri,
Class<T> clientType,
ClientOptionValue<?>... options)
Creates a new client that connects to the specified
URI. |
protected static Endpoint |
newEndpoint(URI uri)
|
protected Scheme |
validateScheme(Scheme scheme)
Makes sure the specified
Scheme is supported by this ClientFactory. |
protected Scheme |
validateScheme(URI uri)
Makes sure the scheme of the specified
URI is supported by this ClientFactory. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireEventLoop, builder, clientBuilderParams, close, closeDefault, disableShutdownHook, eventLoopGroup, eventLoopSupplier, meterRegistry, newClient, newClient, ofDefault, options, setMeterRegistry, supportedSchemes, unwrappublic final <T> T newClient(String uri, Class<T> clientType, ClientOptionValue<?>... options)
ClientFactoryuri.newClient in interface ClientFactoryuri - the URI of the server endpointclientType - the type of the new clientoptions - the ClientOptionValuespublic final <T> T newClient(String uri, Class<T> clientType, ClientOptions options)
ClientFactoryuri.newClient in interface ClientFactoryuri - the URI of the server endpointclientType - the type of the new clientoptions - the ClientOptionspublic final <T> T newClient(URI uri, Class<T> clientType, ClientOptionValue<?>... options)
ClientFactoryURI.newClient in interface ClientFactoryuri - the URI of the server endpointclientType - the type of the new clientoptions - the ClientOptionValuespublic final <T> T newClient(Scheme scheme, Endpoint endpoint, Class<T> clientType, ClientOptionValue<?>... options)
ClientFactorynewClient in interface ClientFactoryscheme - the Scheme for the endpointendpoint - the server EndpointclientType - the type of the new clientoptions - the ClientOptionValuespublic final <T> T newClient(Scheme scheme, Endpoint endpoint, Class<T> clientType, ClientOptions options)
ClientFactorynewClient in interface ClientFactoryscheme - the Scheme for the endpointendpoint - the server EndpointclientType - the type of the new clientoptions - the ClientOptionspublic final <T> T newClient(Scheme scheme, Endpoint endpoint, @Nullable String path, Class<T> clientType, ClientOptionValue<?>... options)
ClientFactorynewClient in interface ClientFactoryscheme - the Scheme for the endpointendpoint - the server Endpointpath - the service pathclientType - the type of the new clientoptions - the ClientOptionValuesprotected final Scheme validateScheme(URI uri)
URI is supported by this ClientFactory.uri - the URI of the server endpointSchemeIllegalArgumentException - if the scheme of the specified URI is not supported by this
ClientFactoryprotected final Scheme validateScheme(Scheme scheme)
Scheme is supported by this ClientFactory.scheme - the Scheme of the server endpointSchemeIllegalArgumentException - if the Scheme is not supported by this ClientFactoryCopyright © 2020 LeanCloud. All rights reserved.