Class Tcp
java.lang.Object
org.springframework.integration.ip.dsl.Tcp
Factory methods for TCP.
- Since:
- 5.0
- Author:
- Gary Russell, Tim Ysewyn, Artem Bilan
- 
Method SummaryModifier and TypeMethodDescriptionstatic TcpInboundChannelAdapterSpecinboundAdapter(AbstractConnectionFactorySpec<?, ?> connectionFactorySpec) Create an inbound channel adapter using the supplied connection factory.static TcpInboundChannelAdapterSpecinboundAdapter(AbstractConnectionFactory connectionFactory) Create an inbound channel adapter using the supplied connection factory.static TcpInboundGatewaySpecinboundGateway(AbstractConnectionFactorySpec<?, ?> connectionFactorySpec) Create an inbound gateway using the supplied connection factory.static TcpInboundGatewaySpecinboundGateway(AbstractConnectionFactory connectionFactory) Create an inbound gateway using the supplied connection factory.Create a client spec that does not use NIO.netServer(int port) Create a server spec that does not use NIO.Create a client spec that uses NIO.nioServer(int port) Create a server spec that uses NIO.outboundAdapter(AbstractConnectionFactorySpec<?, ?> connectionFactorySpec) Create an outbound gateway using the supplied connection factory.outboundAdapter(AbstractConnectionFactory connectionFactory) Create an outbound gateway using the supplied connection factory.static TcpOutboundGatewaySpecoutboundGateway(TcpClientConnectionFactorySpec<?, ?> connectionFactory) Create an outbound gateway using the supplied client connection factory.static TcpOutboundGatewaySpecoutboundGateway(AbstractClientConnectionFactory connectionFactory) Create an outbound gateway using the supplied client connection factory.
- 
Method Details- 
nioServerCreate a server spec that uses NIO.- Parameters:
- port- the port to listen on.
- Returns:
- the spec.
 
- 
netServerCreate a server spec that does not use NIO.- Parameters:
- port- the port to listen on.
- Returns:
- the spec.
 
- 
nioClientCreate a client spec that uses NIO.- Parameters:
- host- the host to connect to.
- port- the port to connect to.
- Returns:
- the spec.
 
- 
netClientCreate a client spec that does not use NIO.- Parameters:
- host- the host to connect to.
- port- the port to connect to.
- Returns:
- the spec.
 
- 
inboundGatewayCreate an inbound gateway using the supplied connection factory.- Parameters:
- connectionFactory- the connection factory - must be an existing bean - it will not be initialized.
- Returns:
- the spec.
 
- 
inboundGatewaypublic static TcpInboundGatewaySpec inboundGateway(AbstractConnectionFactorySpec<?, ?> connectionFactorySpec) Create an inbound gateway using the supplied connection factory.- Parameters:
- connectionFactorySpec- the connection factory spec.
- Returns:
- the spec.
 
- 
inboundAdapterpublic static TcpInboundChannelAdapterSpec inboundAdapter(AbstractConnectionFactory connectionFactory) Create an inbound channel adapter using the supplied connection factory.- Parameters:
- connectionFactory- the connection factory - must be an existing bean - it will not be initialized.
- Returns:
- the spec.
 
- 
inboundAdapterpublic static TcpInboundChannelAdapterSpec inboundAdapter(AbstractConnectionFactorySpec<?, ?> connectionFactorySpec) Create an inbound channel adapter using the supplied connection factory.- Parameters:
- connectionFactorySpec- the connection factory spec.
- Returns:
- the spec.
 
- 
outboundGatewaypublic static TcpOutboundGatewaySpec outboundGateway(AbstractClientConnectionFactory connectionFactory) Create an outbound gateway using the supplied client connection factory.- Parameters:
- connectionFactory- the connection factory - must be an existing bean - it will not be initialized.
- Returns:
- the spec.
 
- 
outboundGatewaypublic static TcpOutboundGatewaySpec outboundGateway(TcpClientConnectionFactorySpec<?, ?> connectionFactory) Create an outbound gateway using the supplied client connection factory.- Parameters:
- connectionFactory- the connection factory spec.
- Returns:
- the spec.
 
- 
outboundAdapterpublic static TcpOutboundChannelAdapterSpec outboundAdapter(AbstractConnectionFactory connectionFactory) Create an outbound gateway using the supplied connection factory.- Parameters:
- connectionFactory- the connection factory - must be an existing bean - it will not be initialized.
- Returns:
- the spec.
 
- 
outboundAdapterpublic static TcpOutboundChannelAdapterSpec outboundAdapter(AbstractConnectionFactorySpec<?, ?> connectionFactorySpec) Create an outbound gateway using the supplied connection factory.- Parameters:
- connectionFactorySpec- the connection factory.
- Returns:
- the spec.
 
 
-