类 Connection

  • 所有已实现的接口:
    io.netty.util.ReferenceCounted

    public class Connection
    extends io.netty.util.AbstractReferenceCounted
    • 字段详细资料

      • CONNECTION

        public static final io.netty.util.AttributeKey<Connection> CONNECTION
    • 构造器详细资料

      • Connection

        public Connection​(URL url)
    • 方法详细资料

      • getConnectionFromChannel

        public static Connection getConnectionFromChannel​(io.netty.channel.Channel channel)
      • getClosePromise

        public io.netty.util.concurrent.Promise<Void> getClosePromise()
      • connect

        public io.netty.channel.ChannelFuture connect()
      • getChannel

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

        public void onGoaway​(io.netty.channel.Channel channel)
      • onConnected

        public void onConnected​(io.netty.channel.Channel channel)
      • isAvailable

        public boolean isAvailable()
      • isClosed

        public boolean isClosed()
      • close

        public void close()
      • touch

        public io.netty.util.ReferenceCounted touch​(Object hint)
      • getUrl

        public URL getUrl()
        get url.
        返回:
        url