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()
ExchangeStreamingConfiguration
getMaxReconnectAttempts
in interface ExchangeStreamingConfiguration
public int getReconnectWaitTimeInMs()
ExchangeStreamingConfiguration
getReconnectWaitTimeInMs
in interface ExchangeStreamingConfiguration
public int getTimeoutInMs()
ExchangeStreamingConfiguration
getTimeoutInMs
in interface ExchangeStreamingConfiguration
public boolean isEncryptedChannel()
ExchangeStreamingConfiguration
isEncryptedChannel
in interface ExchangeStreamingConfiguration
public boolean keepAlive()
ExchangeStreamingConfiguration
keepAlive
in interface ExchangeStreamingConfiguration
public CurrencyPair[] getMarketDataCurrencyPairs()
Copyright © 2012–2018 Xeiam, LLC. All rights reserved.