public class Connection
extends io.netty.util.AbstractReferenceCounted
| Modifier and Type | Field and Description |
|---|---|
static io.netty.util.AttributeKey<Connection> |
CONNECTION |
| Constructor and Description |
|---|
Connection(URL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
io.netty.channel.ChannelFuture |
connect() |
io.netty.channel.Channel |
getChannel() |
io.netty.util.concurrent.Promise<Void> |
getClosePromise() |
static Connection |
getConnectionFromChannel(io.netty.channel.Channel channel) |
InetSocketAddress |
getRemote() |
URL |
getUrl()
get url.
|
boolean |
isAvailable() |
boolean |
isClosed() |
void |
onConnected(io.netty.channel.Channel channel) |
void |
onGoaway(io.netty.channel.Channel channel) |
String |
toString() |
io.netty.util.ReferenceCounted |
touch(Object hint) |
io.netty.channel.ChannelFuture |
write(Object request) |
public static final io.netty.util.AttributeKey<Connection> CONNECTION
public Connection(URL url)
public static Connection getConnectionFromChannel(io.netty.channel.Channel channel)
public io.netty.util.concurrent.Promise<Void> getClosePromise()
public io.netty.channel.ChannelFuture connect()
public io.netty.channel.Channel getChannel()
public void onGoaway(io.netty.channel.Channel channel)
public void onConnected(io.netty.channel.Channel channel)
public boolean isAvailable()
public boolean isClosed()
public io.netty.channel.ChannelFuture write(Object request) throws RemotingException
RemotingExceptionpublic InetSocketAddress getRemote()
public void close()
public io.netty.util.ReferenceCounted touch(Object hint)
public URL getUrl()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.