public class TCPTransportClient extends Object
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.channel.Channel |
channel |
protected static int |
CONNECT_TIMEOUT |
protected InetSocketAddress |
destAddress |
protected io.netty.util.concurrent.EventExecutorGroup |
eventExecutorGroup |
protected static org.slf4j.Logger |
logger |
protected TCPClientConnection |
parentConnection |
protected IMessageParser |
parser |
protected String |
socketDescription |
protected InetSocketAddress |
sourceAddress |
protected io.netty.channel.EventLoopGroup |
workerGroup |
| Modifier | Constructor and Description |
|---|---|
protected |
TCPTransportClient(TCPClientConnection parentConnection,
IMessageParser parser) |
|
TCPTransportClient(TCPClientConnection parentConnection,
IMessageParser parser,
io.netty.channel.Channel channel) |
|
TCPTransportClient(TCPClientConnection parentConnection,
IMessageParser parser,
InetSocketAddress destAddress,
InetSocketAddress sourceAddress) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getDestAddress() |
TCPClientConnection |
getParent() |
void |
release() |
void |
sendMessage(IMessage message) |
void |
start() |
void |
stop() |
String |
toString() |
protected io.netty.channel.EventLoopGroup workerGroup
protected io.netty.util.concurrent.EventExecutorGroup eventExecutorGroup
protected io.netty.channel.Channel channel
protected TCPClientConnection parentConnection
protected InetSocketAddress destAddress
protected InetSocketAddress sourceAddress
protected String socketDescription
protected static final org.slf4j.Logger logger
protected IMessageParser parser
protected static final int CONNECT_TIMEOUT
protected TCPTransportClient(TCPClientConnection parentConnection, IMessageParser parser)
public TCPTransportClient(TCPClientConnection parentConnection, IMessageParser parser, InetSocketAddress destAddress, InetSocketAddress sourceAddress)
public TCPTransportClient(TCPClientConnection parentConnection, IMessageParser parser, io.netty.channel.Channel channel)
public void start()
throws InterruptedException
InterruptedExceptionpublic void stop()
public void release()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionpublic void sendMessage(IMessage message)
public TCPClientConnection getParent()
public InetSocketAddress getDestAddress()
Copyright © 2016. All Rights Reserved.