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()
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 boolean getauthenticateOnConnect()
Copyright © 2012–2016 Xeiam, LLC. All rights reserved.