类 ChannelDelegate

  • 所有已实现的接口:
    Channel, Endpoint

    public class ChannelDelegate
    extends 
    implements Channel
    ChannelDelegate
    • 构造器详细资料

      • ChannelDelegate

        public ChannelDelegate()
      • ChannelDelegate

        public ChannelDelegate​(Channel channel)
    • 方法详细资料

      • getChannel

        public Channel getChannel()
      • setChannel

        public void setChannel​(Channel channel)
      • getUrl

        public URL getUrl()
        从接口复制的说明: Endpoint
        get url.
        指定者:
        getUrl 在接口中 Endpoint
        返回:
        url
      • getRemoteAddress

        public  getRemoteAddress()
        从接口复制的说明: Channel
        get remote address.
        指定者:
        getRemoteAddress 在接口中 Channel
        返回:
        remote address.
      • isConnected

        public boolean isConnected()
        从接口复制的说明: Channel
        is connected.
        指定者:
        isConnected 在接口中 Channel
        返回:
        connected
      • getLocalAddress

        public  getLocalAddress()
        从接口复制的说明: Endpoint
        get local address.
        指定者:
        getLocalAddress 在接口中 Endpoint
        返回:
        local address.
      • hasAttribute

        public boolean hasAttribute​( key)
        从接口复制的说明: Channel
        has attribute.
        指定者:
        hasAttribute 在接口中 Channel
        参数:
        key - key.
        返回:
        has or has not.
      • getAttribute

        public  getAttribute​( key)
        从接口复制的说明: Channel
        get attribute.
        指定者:
        getAttribute 在接口中 Channel
        参数:
        key - key.
        返回:
        value.
      • setAttribute

        public void setAttribute​( key,
                                  value)
        从接口复制的说明: Channel
        set attribute.
        指定者:
        setAttribute 在接口中 Channel
        参数:
        key - key.
        value - value.
      • removeAttribute

        public void removeAttribute​( key)
        从接口复制的说明: Channel
        remove attribute.
        指定者:
        removeAttribute 在接口中 Channel
        参数:
        key - key.
      • close

        public void close()
        从接口复制的说明: Endpoint
        close the channel.
        指定者:
        close 在接口中 Endpoint
      • close

        public void close​(int timeout)
        从接口复制的说明: Endpoint
        Graceful close the channel.
        指定者:
        close 在接口中 Endpoint
      • isClosed

        public boolean isClosed()
        从接口复制的说明: Endpoint
        is closed.
        指定者:
        isClosed 在接口中 Endpoint
        返回:
        closed