public class BitstampStreamingConfiguration extends Object implements ExchangeStreamingConfiguration
Value object to provide the following
| Constructor and Description |
|---|
BitstampStreamingConfiguration() |
BitstampStreamingConfiguration(com.pusher.client.PusherOptions pusherOptions,
int maxReconnectAttempts,
int reconnectWaitTimeInMs,
int timeoutInMs,
boolean isEncryptedChannel,
String pusherKey,
Set<String> channels)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getChannels() |
int |
getMaxReconnectAttempts()
What are the maximum number of reconnect attempts?
|
String |
getPusherKey() |
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)
|
com.pusher.client.PusherOptions |
pusherOptions() |
public BitstampStreamingConfiguration(com.pusher.client.PusherOptions pusherOptions,
int maxReconnectAttempts,
int reconnectWaitTimeInMs,
int timeoutInMs,
boolean isEncryptedChannel,
String pusherKey,
Set<String> channels)
maxReconnectAttempts - reconnectWaitTimeInMs - timeoutInMs - isEncryptedChannel - - should it use an encrypted channel or not? (ws vs. wss protocol)channel - - the specific data channel you want to tap into (https://mtgox.com/api/2/stream/list_public), null if nonepublic BitstampStreamingConfiguration()
public final com.pusher.client.PusherOptions pusherOptions()
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 String getPusherKey()
Copyright © 2012–2017 Xeiam, LLC. All rights reserved.