Modifier and Type | Field and Description |
---|---|
static int |
INT_SIZE |
Constructor and Description |
---|
NettyLink(io.netty.channel.Channel channel,
Encoder<? super T> encoder)
Constructs a link.
|
NettyLink(io.netty.channel.Channel channel,
Encoder<? super T> encoder,
LinkListener<? super T> listener)
Constructs a link.
|
Modifier and Type | Method and Description |
---|---|
SocketAddress |
getLocalAddress()
Gets a local address of the link.
|
SocketAddress |
getRemoteAddress()
Gets a remote address of the link.
|
String |
toString() |
void |
write(T message)
Writes the message to this link.
|
public static final int INT_SIZE
public NettyLink(io.netty.channel.Channel channel, Encoder<? super T> encoder)
channel
- the channelencoder
- the encoderpublic NettyLink(io.netty.channel.Channel channel, Encoder<? super T> encoder, LinkListener<? super T> listener)
channel
- the channelencoder
- the encoderlistener
- the link listenerpublic SocketAddress getLocalAddress()
getLocalAddress
in interface Link<T>
public SocketAddress getRemoteAddress()
getRemoteAddress
in interface Link<T>
Copyright © 2017 The Apache Software Foundation. All rights reserved.