com.xeiam.xchange.coinsetter.service.streaming.CoinsetterStreamingConfiguration Maven / Gradle / Ivy
package com.xeiam.xchange.coinsetter.service.streaming;
import java.util.HashMap;
import java.util.Map;
import com.xeiam.xchange.service.streaming.ExchangeStreamingConfiguration;
/**
* Coinsetter configuration for streaming service.
*/
public class CoinsetterStreamingConfiguration implements ExchangeStreamingConfiguration {
private final Map events = new HashMap();
public CoinsetterStreamingConfiguration() {
}
/**
* {@inheritDoc}
*/
@Override
public int getMaxReconnectAttempts() {
return 0;
}
/**
* {@inheritDoc}
*/
@Override
public int getReconnectWaitTimeInMs() {
return 0;
}
/**
* {@inheritDoc}
*/
@Override
public int getTimeoutInMs() {
return 0;
}
/**
* {@inheritDoc}
*/
@Override
public boolean isEncryptedChannel() {
return false;
}
/**
* {@inheritDoc}
*/
@Override
public boolean keepAlive() {
return false;
}
public Map getEvents() {
return events;
}
/**
* Add event channel to subscribe. The event could be:
*
* - last room
* - ticker room
* - depth room
* - levels room
* - levels_COINSETTER room
* - levels_SMART room
* - orders room
*
*
* @param event the event channels.
* @param args event arguments.
*/
public void addEvent(String event, Object... args) {
this.events.put(event, args);
}
public void addAllMarketDataEvents() {
for (String event : new String[] { "last room", "ticker room", "depth room", "levels room", }) {
addEvent(event);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy