Package org.knowm.xchange.client
Class ExchangeRestProxyBuilder<T>
java.lang.Object
org.knowm.xchange.client.ExchangeRestProxyBuilder<T>
public final class ExchangeRestProxyBuilder<T> extends Object
-
Method Summary
Modifier and Type Method Description ExchangeRestProxyBuilder<T>
baseUrl(String baseUrl)
T
build()
ExchangeRestProxyBuilder<T>
clientConfig(si.mazi.rescu.ClientConfig value)
ExchangeRestProxyBuilder<T>
clientConfigCustomizer(ClientConfigCustomizer clientConfigCustomizer)
static si.mazi.rescu.ClientConfig
createClientConfig(ExchangeSpecification exchangeSpecification)
Get a ClientConfig object which contains exchange-specific timeout values (httpConnTimeout and httpReadTimeout) if they were present in the ExchangeSpecification of this instance.ExchangeRestProxyBuilder<T>
customInterceptor(si.mazi.rescu.Interceptor value)
ExchangeRestProxyBuilder<T>
customInterceptors(Collection<si.mazi.rescu.Interceptor> interceptors)
static <T> ExchangeRestProxyBuilder<T>
forInterface(Class<T> restInterface, ExchangeSpecification exchangeSpecification)
ExchangeRestProxyBuilder<T>
restProxyFactory(si.mazi.rescu.IRestProxyFactory restProxyFactory)
-
Method Details
-
forInterface
public static <T> ExchangeRestProxyBuilder<T> forInterface(Class<T> restInterface, ExchangeSpecification exchangeSpecification) -
clientConfig
-
clientConfigCustomizer
public ExchangeRestProxyBuilder<T> clientConfigCustomizer(ClientConfigCustomizer clientConfigCustomizer) -
baseUrl
-
customInterceptor
-
customInterceptors
public ExchangeRestProxyBuilder<T> customInterceptors(Collection<si.mazi.rescu.Interceptor> interceptors) -
restProxyFactory
public ExchangeRestProxyBuilder<T> restProxyFactory(si.mazi.rescu.IRestProxyFactory restProxyFactory) -
build
-
createClientConfig
public static si.mazi.rescu.ClientConfig createClientConfig(ExchangeSpecification exchangeSpecification)Get a ClientConfig object which contains exchange-specific timeout values (httpConnTimeout and httpReadTimeout) if they were present in the ExchangeSpecification of this instance.- Returns:
- a rescu client config object
-