类 WebSocketChannel<Id extends WebSocketChannelId<Message>,Message extends WebSocketTopicMessage>

java.lang.Object
io.contek.invoker.commons.websocket.BaseWebSocketChannel<Id,Message>
io.contek.invoker.bybitlinear.api.websocket.WebSocketChannel<Id,Message>
所有已实现的接口:
io.contek.invoker.commons.websocket.IWebSocketComponent, io.contek.invoker.commons.websocket.IWebSocketListener
直接已知子类:
InstrumentInfoChannel, KlineV2Channel, OrderBookChannel, OrderChannel, PositionChannel, TradeChannel

@ThreadSafe public abstract class WebSocketChannel<Id extends WebSocketChannelId<Message>,Message extends WebSocketTopicMessage> extends io.contek.invoker.commons.websocket.BaseWebSocketChannel<Id,Message>
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected final io.contek.invoker.commons.websocket.SubscriptionState
    getState(io.contek.invoker.commons.websocket.AnyWebSocketMessage message)
     
    protected final void
     
    protected final io.contek.invoker.commons.websocket.SubscriptionState
    subscribe(io.contek.invoker.commons.websocket.WebSocketSession session)
     
    protected final io.contek.invoker.commons.websocket.SubscriptionState
    unsubscribe(io.contek.invoker.commons.websocket.WebSocketSession session)
     

    从类继承的方法 io.contek.invoker.commons.websocket.BaseWebSocketChannel

    addConsumer, afterDisconnect, getId, getMessageType, getState, heartbeat, onMessage

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • WebSocketChannel

      protected WebSocketChannel(Id id)
  • 方法详细资料

    • subscribe

      protected final io.contek.invoker.commons.websocket.SubscriptionState subscribe(io.contek.invoker.commons.websocket.WebSocketSession session)
      指定者:
      subscribe 在类中 io.contek.invoker.commons.websocket.BaseWebSocketChannel<Id extends WebSocketChannelId<Message>,Message extends WebSocketTopicMessage>
    • unsubscribe

      protected final io.contek.invoker.commons.websocket.SubscriptionState unsubscribe(io.contek.invoker.commons.websocket.WebSocketSession session)
      指定者:
      unsubscribe 在类中 io.contek.invoker.commons.websocket.BaseWebSocketChannel<Id extends WebSocketChannelId<Message>,Message extends WebSocketTopicMessage>
    • getState

      @Nullable protected final io.contek.invoker.commons.websocket.SubscriptionState getState(io.contek.invoker.commons.websocket.AnyWebSocketMessage message)
      指定者:
      getState 在类中 io.contek.invoker.commons.websocket.BaseWebSocketChannel<Id extends WebSocketChannelId<Message>,Message extends WebSocketTopicMessage>
    • reset

      protected final void reset()
      指定者:
      reset 在类中 io.contek.invoker.commons.websocket.BaseWebSocketChannel<Id extends WebSocketChannelId<Message>,Message extends WebSocketTopicMessage>