Search in sources :

Example 1 with DoNothingCommandCallback

use of com.github.jnidzwetzki.bitfinex.v2.callback.command.DoNothingCommandCallback in project bitfinex-v2-wss-api-java by jnidzwetzki.

the class BitfinexApiBroker method setupCommandCallbacks.

/**
 * Setup the command callbacks
 */
private void setupCommandCallbacks() {
    commandCallbacks = new HashMap<>();
    commandCallbacks.put("info", new DoNothingCommandCallback());
    commandCallbacks.put("subscribed", new SubscribedCallback());
    commandCallbacks.put("pong", new ConnectionHeartbeatCallback());
    commandCallbacks.put("unsubscribed", new UnsubscribedCallback());
    commandCallbacks.put("auth", new AuthCallbackHandler());
}
Also used : SubscribedCallback(com.github.jnidzwetzki.bitfinex.v2.callback.command.SubscribedCallback) DoNothingCommandCallback(com.github.jnidzwetzki.bitfinex.v2.callback.command.DoNothingCommandCallback) ConnectionHeartbeatCallback(com.github.jnidzwetzki.bitfinex.v2.callback.command.ConnectionHeartbeatCallback) AuthCallbackHandler(com.github.jnidzwetzki.bitfinex.v2.callback.command.AuthCallbackHandler) UnsubscribedCallback(com.github.jnidzwetzki.bitfinex.v2.callback.command.UnsubscribedCallback)

Aggregations

AuthCallbackHandler (com.github.jnidzwetzki.bitfinex.v2.callback.command.AuthCallbackHandler)1 ConnectionHeartbeatCallback (com.github.jnidzwetzki.bitfinex.v2.callback.command.ConnectionHeartbeatCallback)1 DoNothingCommandCallback (com.github.jnidzwetzki.bitfinex.v2.callback.command.DoNothingCommandCallback)1 SubscribedCallback (com.github.jnidzwetzki.bitfinex.v2.callback.command.SubscribedCallback)1 UnsubscribedCallback (com.github.jnidzwetzki.bitfinex.v2.callback.command.UnsubscribedCallback)1