Class TcpConsumerConfiguration
java.lang.Object
org.springframework.cloud.fn.consumer.tcp.TcpConsumerConfiguration
@AutoConfiguration
@EnableConfigurationProperties({TcpConsumerProperties.class,org.springframework.cloud.fn.common.tcp.TcpConnectionFactoryProperties.class})
public class TcpConsumerConfiguration
extends Object
A consumer that sends data over TCP.
-
Constructor Summary
ConstructorsConstructorDescriptionTcpConsumerConfiguration(TcpConsumerProperties properties, org.springframework.cloud.fn.common.tcp.TcpConnectionFactoryProperties tcpConnectionProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cloud.fn.consumer.tcp.TcpConsumerConfiguration.TcpSendingMessageHandlerSmartLifeCyclehandler(org.springframework.integration.ip.tcp.connection.AbstractConnectionFactory connectionFactory) Consumer<org.springframework.messaging.Message<?>>tcpConsumer(org.springframework.cloud.fn.consumer.tcp.TcpConsumerConfiguration.TcpSendingMessageHandlerSmartLifeCycle handler) org.springframework.integration.ip.config.TcpConnectionFactoryFactoryBeantcpSinkConnectionFactory(org.springframework.integration.ip.tcp.serializer.AbstractByteArraySerializer encoder, org.springframework.integration.ip.tcp.connection.TcpMessageMapper mapper) org.springframework.cloud.fn.common.tcp.EncoderDecoderFactoryBeanorg.springframework.integration.ip.tcp.connection.TcpMessageMapper
-
Constructor Details
-
TcpConsumerConfiguration
public TcpConsumerConfiguration(TcpConsumerProperties properties, org.springframework.cloud.fn.common.tcp.TcpConnectionFactoryProperties tcpConnectionProperties)
-
-
Method Details
-
tcpConsumer
@Bean public Consumer<org.springframework.messaging.Message<?>> tcpConsumer(org.springframework.cloud.fn.consumer.tcp.TcpConsumerConfiguration.TcpSendingMessageHandlerSmartLifeCycle handler) -
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) -
tcpSinkEncoder
@Bean public org.springframework.cloud.fn.common.tcp.EncoderDecoderFactoryBean tcpSinkEncoder() -
tcpSinkMapper
@Bean public org.springframework.integration.ip.tcp.connection.TcpMessageMapper tcpSinkMapper()
-