类 WebsocketClient

java.lang.Object
cn.godmao.getty.server_websocket.client.WebsocketClient
所有已实现的接口:
cn.godmao.common.Init, cn.godmao.common.Init.Init0, IServer, Serializable

public abstract class WebsocketClient extends Object implements IServer, cn.godmao.common.Init.Init0
另请参阅:
  • 字段详细资料

    • log

      public final org.slf4j.Logger log
  • 构造器详细资料

    • WebsocketClient

      public WebsocketClient(String uri)
  • 方法详细资料

    • init

      public void init() throws Exception
      指定者:
      init 在接口中 cn.godmao.common.Init.Init0
      抛出:
      Exception
    • getHost

      public String getHost()
    • getPort

      public Integer getPort()
    • getUri

      public String getUri()
    • getConfig

      public WebsocketClientConfig getConfig()
      指定者:
      getConfig 在接口中 IServer
    • getEncoder

      public <EP, ER> IEncoder<EP,ER> getEncoder()
    • getDecoder

      public <DP, DR> IDecoder<DP,DR> getDecoder()
    • start

      public void start() throws Exception
      指定者:
      start 在接口中 IServer
      抛出:
      Exception
    • connect

      public void connect() throws InterruptedException
      抛出:
      InterruptedException
    • stop

      public void stop()
      指定者:
      stop 在接口中 IServer
    • getChannel

      public io.netty.channel.Channel getChannel()
    • isOnline

      public boolean isOnline()
    • getChannelId

      public String getChannelId()
    • send

      public void send(Object message)
    • onOpen

      public abstract void onOpen()
    • onClose

      public abstract void onClose()
    • onError

      public abstract void onError(Throwable throwable)
    • onMessage

      public abstract void onMessage(Object message)