public class MeXBTExchangeStreamingConfiguration extends Object implements ExchangeStreamingConfiguration
Constructor and Description |
---|
MeXBTExchangeStreamingConfiguration(boolean subscribeTicker,
String[] inses)
Constructs a configuration.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getInses() |
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 |
isSubscribeTicker() |
boolean |
keepAlive()
should it keep the socket alive? (send ping every 15s)
|
public MeXBTExchangeStreamingConfiguration(boolean subscribeTicker, String[] inses)
subscribeTicker
- indicates to subscribe ticker.inses
- indicates what ins should be subscribed in live trades and order book.public int getMaxReconnectAttempts()
getMaxReconnectAttempts
in interface ExchangeStreamingConfiguration
public int getReconnectWaitTimeInMs()
getReconnectWaitTimeInMs
in interface ExchangeStreamingConfiguration
public int getTimeoutInMs()
getTimeoutInMs
in interface ExchangeStreamingConfiguration
public boolean isEncryptedChannel()
isEncryptedChannel
in interface ExchangeStreamingConfiguration
public boolean keepAlive()
keepAlive
in interface ExchangeStreamingConfiguration
public boolean isSubscribeTicker()
public String[] getInses()
Copyright © 2012–2016 Xeiam, LLC. All rights reserved.