Class TcpConsumerConfiguration
java.lang.Object
org.springframework.cloud.fn.consumer.tcp.TcpConsumerConfiguration
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties({TcpConsumerProperties.class,TcpConnectionFactoryProperties.class})
public class TcpConsumerConfiguration
extends Object
A consumer that sends data over TCP.
- Author:
- Gary Russell, Christian Tzolov, Chris Bono
-
Constructor Summary
ConstructorDescriptionTcpConsumerConfiguration
(TcpConsumerProperties properties, TcpConnectionFactoryProperties tcpConnectionProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cloud.fn.consumer.tcp.TcpConsumerConfiguration.TcpSendingMessageHandlerSmartLifeCycle
handler
(org.springframework.integration.ip.tcp.connection.AbstractConnectionFactory connectionFactory) tcpConsumer
(org.springframework.cloud.fn.consumer.tcp.TcpConsumerConfiguration.TcpSendingMessageHandlerSmartLifeCycle handler) org.springframework.integration.ip.config.TcpConnectionFactoryFactoryBean
tcpSinkConnectionFactory
(org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer encoder, org.springframework.integration.ip.tcp.connection.TcpMessageMapper mapper) org.springframework.integration.ip.tcp.connection.TcpMessageMapper
-
Constructor Details
-
TcpConsumerConfiguration
public TcpConsumerConfiguration(TcpConsumerProperties properties, TcpConnectionFactoryProperties tcpConnectionProperties)
-
-
Method Details
-
tcpConsumer
-
handler
@Bean public org.springframework.cloud.fn.consumer.tcp.TcpConsumerConfiguration.TcpSendingMessageHandlerSmartLifeCycle handler(@Qualifier("tcpSinkConnectionFactory") org.springframework.integration.ip.tcp.connection.AbstractConnectionFactory connectionFactory) -
tcpSinkConnectionFactory
@Bean public org.springframework.integration.ip.config.TcpConnectionFactoryFactoryBean tcpSinkConnectionFactory(@Qualifier("tcpSinkEncoder") org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer encoder, @Qualifier("tcpSinkMapper") org.springframework.integration.ip.tcp.connection.TcpMessageMapper mapper) throws Exception - Throws:
Exception
-
tcpSinkEncoder
-
tcpSinkMapper
-