public class CoinfloorStreamingConfiguration extends Object implements ExchangeStreamingConfiguration
| Constructor and Description |
|---|
CoinfloorStreamingConfiguration(int maxReconnectAttempts,
int reconnectWaitTimeInMs,
int timeoutInMs,
boolean isEncryptedChannel,
boolean keepAlive,
boolean authenticateOnConnect) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getauthenticateOnConnect() |
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 CoinfloorStreamingConfiguration(int maxReconnectAttempts,
int reconnectWaitTimeInMs,
int timeoutInMs,
boolean isEncryptedChannel,
boolean keepAlive,
boolean authenticateOnConnect)
maxReconnectAttempts - reconnectWaitTimeInMs - timeoutInMs - keepAlive - if true, will ping server every 15s to keep connection alive. If false, server will likely terminate connection after 60s of
inactivity.isEncryptedChannel - if true, use WSS:// (SSL link)authenticateOnConnect - setting this flag to true will cause the CoinfloorStreamingExchangeService to authenticate immediately upon
connection. If false, authenticated methods will not be availiable unless authenicate() is called. Relies on userID/Cookie/Password from
exchangeSpecificationpublic 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 boolean getauthenticateOnConnect()
Copyright © 2012–2017 Xeiam, LLC. All rights reserved.