public final class Tcp extends Object
Modifier and Type | Method and Description |
---|---|
static TcpInboundChannelAdapterSpec |
inboundAdapter(AbstractConnectionFactory connectionFactory)
Create an inbound channel adapter using the supplied connection factory.
|
static TcpInboundChannelAdapterSpec |
inboundAdapter(AbstractConnectionFactorySpec<?,?> connectionFactorySpec)
Create an inbound channel adapter using the supplied connection factory.
|
static TcpInboundGatewaySpec |
inboundGateway(AbstractConnectionFactory connectionFactory)
Create an inbound gateway using the supplied connection factory.
|
static TcpInboundGatewaySpec |
inboundGateway(AbstractConnectionFactorySpec<?,?> connectionFactorySpec)
Create an inbound gateway using the supplied connection factory.
|
static TcpClientConnectionFactorySpec |
netClient(String host,
int port)
Create a client spec that does not use NIO.
|
static TcpServerConnectionFactorySpec |
netServer(int port)
Create a server spec that does not use NIO.
|
static TcpClientConnectionFactorySpec |
nioClient(String host,
int port)
Create a client spec that uses NIO.
|
static TcpServerConnectionFactorySpec |
nioServer(int port)
Create a server spec that uses NIO.
|
static TcpOutboundChannelAdapterSpec |
outboundAdapter(AbstractConnectionFactory connectionFactory)
Create an outbound gateway using the supplied connection factory.
|
static TcpOutboundChannelAdapterSpec |
outboundAdapter(AbstractConnectionFactorySpec<?,?> connectionFactorySpec)
Create an outbound gateway using the supplied connection factory.
|
static TcpOutboundGatewaySpec |
outboundGateway(AbstractClientConnectionFactory connectionFactory)
Create an outbound gateway using the supplied client connection factory.
|
static TcpOutboundGatewaySpec |
outboundGateway(TcpClientConnectionFactorySpec connectionFactory)
Create an outbound gateway using the supplied client connection factory.
|
public static TcpServerConnectionFactorySpec nioServer(int port)
port
- the port to listen on.public static TcpServerConnectionFactorySpec netServer(int port)
port
- the port to listen on.public static TcpClientConnectionFactorySpec nioClient(String host, int port)
host
- the host to connect to.port
- the port to connect to.public static TcpClientConnectionFactorySpec netClient(String host, int port)
host
- the host to connect to.port
- the port to connect to.public static TcpInboundGatewaySpec inboundGateway(AbstractConnectionFactory connectionFactory)
connectionFactory
- the connection factory - must be an existing bean - it
will not be initialized.public static TcpInboundGatewaySpec inboundGateway(AbstractConnectionFactorySpec<?,?> connectionFactorySpec)
connectionFactorySpec
- the connection factory spec.public static TcpInboundChannelAdapterSpec inboundAdapter(AbstractConnectionFactory connectionFactory)
connectionFactory
- the connection factory - must be an existing bean - it
will not be initialized.public static TcpInboundChannelAdapterSpec inboundAdapter(AbstractConnectionFactorySpec<?,?> connectionFactorySpec)
connectionFactorySpec
- the connection factory spec.public static TcpOutboundGatewaySpec outboundGateway(AbstractClientConnectionFactory connectionFactory)
connectionFactory
- the connection factory - must be an existing bean - it
will not be initialized.public static TcpOutboundGatewaySpec outboundGateway(TcpClientConnectionFactorySpec connectionFactory)
connectionFactory
- the connection factory spec.public static TcpOutboundChannelAdapterSpec outboundAdapter(AbstractConnectionFactory connectionFactory)
connectionFactory
- the connection factory - must be an existing bean - it
will not be initialized.public static TcpOutboundChannelAdapterSpec outboundAdapter(AbstractConnectionFactorySpec<?,?> connectionFactorySpec)
connectionFactorySpec
- the connection factory.