public class ClientSideServiceProvider extends java.lang.Object implements IServiceProvider
Modifier and Type | Method and Description |
---|---|
static ClientSideServiceProvider |
getProvider(java.lang.String base,
java.lang.String apiKey) |
static ClientSideServiceProvider |
getProvider(java.lang.String base,
java.lang.String apiKey,
int timeoutSeconds) |
<T,A> A |
instance(java.lang.Class<T> interfaceClass,
java.lang.Class<A> asyncInterface,
java.lang.String... params) |
<T> T |
instance(java.lang.Class<T> interfaceClass,
java.lang.String... params)
Instantiate a service
|
ClientSideServiceProvider |
setOrigin(java.lang.String origin) |
ClientSideServiceProvider |
withRemoteIps(java.util.List<java.lang.String> remotes) |
public static ClientSideServiceProvider getProvider(java.lang.String base, java.lang.String apiKey)
public static ClientSideServiceProvider getProvider(java.lang.String base, java.lang.String apiKey, int timeoutSeconds)
public <T> T instance(java.lang.Class<T> interfaceClass, java.lang.String... params)
IServiceProvider
instance
in interface IServiceProvider
interfaceClass
- service interfacepublic <T,A> A instance(java.lang.Class<T> interfaceClass, java.lang.Class<A> asyncInterface, java.lang.String... params)
public ClientSideServiceProvider withRemoteIps(java.util.List<java.lang.String> remotes)
public ClientSideServiceProvider setOrigin(java.lang.String origin)
Copyright © 2021. All Rights Reserved.