Class GateioUserTradeStreamingService
java.lang.Object
info.bitrich.xchangestream.service.ConnectableService
info.bitrich.xchangestream.service.netty.NettyStreamingService<com.fasterxml.jackson.databind.JsonNode>
info.bitrich.xchangestream.service.netty.JsonNettyStreamingService
info.bitrich.xchangestream.gateio.GateioUserTradeStreamingService
-
Nested Class Summary
Nested classes/interfaces inherited from class info.bitrich.xchangestream.service.netty.NettyStreamingService
NettyStreamingService.NettyWebSocketClientHandler, NettyStreamingService.Subscription -
Field Summary
Fields inherited from class info.bitrich.xchangestream.service.netty.JsonNettyStreamingService
objectMapperFields inherited from class info.bitrich.xchangestream.service.netty.NettyStreamingService
channels, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_IDLE_TIMEOUT, DEFAULT_RETRY_DURATION, uriFields inherited from class info.bitrich.xchangestream.service.ConnectableService
BEFORE_CONNECTION_HANDLER -
Constructor Summary
ConstructorsConstructorDescriptionGateioUserTradeStreamingService(String privateApiUrl, String apiKey, String apiSecret, ExchangeSpecification exchangeSpecification) -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Completableconnect()protected StringgetChannelNameFromMessage(com.fasterxml.jackson.databind.JsonNode message) getSubscribeMessage(String uniqueChannelName, Object... args) getUnsubscribeMessage(String channelName, Object... args) voidlogin()voidmessageHandler(String message) Handler that receives incoming messages.voidMethods inherited from class info.bitrich.xchangestream.service.netty.JsonNettyStreamingService
processArrayMessageSeparately, sendObjectMessageMethods inherited from class info.bitrich.xchangestream.service.netty.NettyStreamingService
disconnect, getChannel, getCustomHeaders, getSubscriptionUniqueId, getWebSocketClientExtensionHandler, getWebSocketClientHandler, handleChannelError, handleChannelMessage, handleError, handleIdle, handleMessage, isSocketOpen, openConnection, resubscribeChannels, sendMessage, setAcceptAllCertificates, setAutoReconnect, setEnableLoggingHandler, setLoggingHandlerLevel, setSocksProxyHost, setSocksProxyPort, subscribeChannel, subscribeConnectionState, subscribeConnectionSuccess, subscribeDisconnect, subscribeIdle, subscribeReconnectFailure, useCompressedMessagesMethods inherited from class info.bitrich.xchangestream.service.ConnectableService
setBeforeConnectionHandler
-
Constructor Details
-
GateioUserTradeStreamingService
public GateioUserTradeStreamingService(String privateApiUrl, String apiKey, String apiSecret, ExchangeSpecification exchangeSpecification)
-
-
Method Details
-
connect
public io.reactivex.rxjava3.core.Completable connect()- Overrides:
connectin classConnectableService
-
login
public void login() throws com.fasterxml.jackson.core.JsonProcessingException- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
messageHandler
Description copied from class:NettyStreamingServiceHandler that receives incoming messages.- Overrides:
messageHandlerin classJsonNettyStreamingService- Parameters:
message- Content of the message from the server.
-
getSubscribeMessage
- Specified by:
getSubscribeMessagein classNettyStreamingService<com.fasterxml.jackson.databind.JsonNode>- Throws:
IOException
-
pingPongDisconnectIfConnected
public void pingPongDisconnectIfConnected() -
getChannelNameFromMessage
protected String getChannelNameFromMessage(com.fasterxml.jackson.databind.JsonNode message) throws IOException - Specified by:
getChannelNameFromMessagein classNettyStreamingService<com.fasterxml.jackson.databind.JsonNode>- Throws:
IOException
-
getUnsubscribeMessage
- Specified by:
getUnsubscribeMessagein classNettyStreamingService<com.fasterxml.jackson.databind.JsonNode>- Throws:
IOException
-