Files
stream-applications/functions/consumer/tcp-consumer
Soby Chacko 760683cc2a Restructuing with maven revision feature
Preserving the maven revision feature from the previous commit,
but perform a bit more restructuring the hierarchy.
2020-10-13 15:17:52 -04:00
..
2020-05-19 14:31:12 -04:00
2020-06-02 12:01:57 -04:00

# TCP Consumer

A consumer that allows you to send TCP messages.

## Beans for injection

You can import `TcpConsumerConfiguration` in the application and then inject the following bean.

`Consumer<Message<?>> tcpConsumer`

You can use `tcpConsumer` as a qualifier when injecting.

## Configuration Options

All configuration properties are prefixed with `tcp.consumer`.

For more information on the various options available, please see link:src/main/java/org/springframework/cloud/fn/consumer/tcp/TCPConsumerProperties.java[TcpConsumerProperties].

## Tests

See this link:src/test/java/org/springframework/cloud/fn/consumer/tcp[test suite] for the various ways, this consumer is used.

## Other usage

See this https://github.com/spring-cloud/stream-applications/blob/master/applications/sink/tcp-sink/README.adoc[README] where this consumer is used to create a Spring Cloud Stream application where it makes a TCP sink.