类 Connection

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

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

      • 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)
      • getCloseFuture

        public io.netty.util.concurrent.Promise<Void> getCloseFuture()
      • 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)
      • connectSync

        public void connectSync()
      • isAvailable

        public boolean isAvailable()
      • isClosed

        public boolean isClosed()
      • close

        public void close()
      • touch

        public io.netty.util.ReferenceCounted touch​(Object hint)
        指定者:
        touch 在接口中 io.netty.util.ReferenceCounted
      • getUrl

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