public class OkCoinExchangeStreamingConfiguration extends Object implements ExchangeStreamingConfiguration
| Constructor and Description |
|---|
OkCoinExchangeStreamingConfiguration() |
OkCoinExchangeStreamingConfiguration(CurrencyPair[] marketDataCurrencyPairs) |
| Modifier and Type | Method and Description |
|---|---|
CurrencyPair[] |
getMarketDataCurrencyPairs() |
int |
getMaxReconnectAttempts()
What are the maximum number of reconnect attempts?
|
int |
getReconnectWaitTimeInMs()
Before attempting reconnect, how much of a delay?
|
int |
getTimeoutInMs()
How much time should elapse before the connection is considered dead and a reconnect attempt should be made?
|
boolean |
isEncryptedChannel()
should it use an encrypted channel or not? (ws vs.
|
boolean |
keepAlive()
should it keep the socket alive? (send ping every 15s)
|
public OkCoinExchangeStreamingConfiguration()
public OkCoinExchangeStreamingConfiguration(CurrencyPair[] marketDataCurrencyPairs)
public int getMaxReconnectAttempts()
ExchangeStreamingConfigurationgetMaxReconnectAttempts in interface ExchangeStreamingConfigurationpublic int getReconnectWaitTimeInMs()
ExchangeStreamingConfigurationgetReconnectWaitTimeInMs in interface ExchangeStreamingConfigurationpublic int getTimeoutInMs()
ExchangeStreamingConfigurationgetTimeoutInMs in interface ExchangeStreamingConfigurationpublic boolean isEncryptedChannel()
ExchangeStreamingConfigurationisEncryptedChannel in interface ExchangeStreamingConfigurationpublic boolean keepAlive()
ExchangeStreamingConfigurationkeepAlive in interface ExchangeStreamingConfigurationpublic CurrencyPair[] getMarketDataCurrencyPairs()
Copyright © 2012–2017 Xeiam, LLC. All rights reserved.