类 Connection
- java.lang.Object
-
- io.netty.util.AbstractReferenceCounted
-
- org.apache.dubbo.remoting.api.Connection
-
- 所有已实现的接口:
io.netty.util.ReferenceCounted
public class Connection extends io.netty.util.AbstractReferenceCounted implements io.netty.util.ReferenceCounted
-
-
字段概要
字段 修饰符和类型 字段 说明 static io.netty.util.AttributeKey<Connection>CONNECTION
-
构造器概要
构造器 构造器 说明 Connection(URL url)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()io.netty.channel.ChannelFutureconnect()voidconnectSync()io.netty.channel.ChannelgetChannel()io.netty.util.concurrent.Promise<Void>getCloseFuture()static ConnectiongetConnectionFromChannel(io.netty.channel.Channel channel)InetSocketAddressgetRemote()URLgetUrl()get url.booleanisAvailable()booleanisClosed()voidonConnected(io.netty.channel.Channel channel)voidonGoaway(io.netty.channel.Channel channel)StringtoString()io.netty.util.ReferenceCountedtouch(Object hint)io.netty.channel.ChannelFuturewrite(Object request)
-
-
-
字段详细资料
-
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()
-
write
public io.netty.channel.ChannelFuture write(Object request) throws RemotingException
-
getRemote
public InetSocketAddress getRemote()
-
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
-
-