Skip to content

Instantly share code, notes, and snippets.

@dxtr
Created March 20, 2020 03:59
Show Gist options
  • Save dxtr/fd74b1e0288aa2ce31be9919dc953d06 to your computer and use it in GitHub Desktop.
Save dxtr/fd74b1e0288aa2ce31be9919dc953d06 to your computer and use it in GitHub Desktop.
IntegrationFlow privateFeedFlow = f -> f.handle(Tcp
.outboundGateway(
Tcp.netClient(privateFeed.getHostname(), (int) privateFeed.getPort())
.serializer(TcpCodecs.crlf())
.deserializer(TcpCodecs.lengthHeader1())
.id("privateFeed"))
.remoteTimeout(m -> 5000))
.transform(Transformers.objectToString())
.handle(System.out::println);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment