Class TCPIOClient<T>

All Implemented Interfaces:
IOClient<T>, NettyIOClient<T>

public class TCPIOClient<T> extends AbstractNettyIOClient<T,InetSocketAddress>
This is a IOClient implementation for TCP.

Users of this IOClient are responsible for adding encoders for converting messages of type <T> to ByteBuf (see AbstractNettyIOClient.MessageToByteEncoder) and adding decoders to convert from ByteBuf to messages of type <T> and ensuring these decoded messages are passed back to this client via AbstractNettyIOClient.onMessageReceived(T) (see AbstractNettyIOClient.ByteToMessageDecoder and AbstractNettyIOClient.MessageToMessageDecoder).