接口 Channel

    • 方法详细资料

      • getRemoteAddress

        InetSocketAddress getRemoteAddress()
        get remote address.
        返回:
        remote address.
      • isConnected

        boolean isConnected()
        is connected.
        返回:
        connected
      • hasAttribute

        boolean hasAttribute(String key)
        has attribute.
        参数:
        key - key.
        返回:
        has or has not.
      • getAttribute

        Object getAttribute(String key)
        get attribute.
        参数:
        key - key.
        返回:
        value.
      • setAttribute

        void setAttribute(String key,
                          Object value)
        set attribute.
        参数:
        key - key.
        value - value.
      • removeAttribute

        void removeAttribute(String key)
        remove attribute.
        参数:
        key - key.