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