From 09169450961a13532d664ee0d78c6406993f661e Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 15 May 2023 09:28:31 -0400 Subject: [PATCH] GH-6827: More XSD docs for SI-ip.xsd (#8620) Fixes https://github.com/spring-projects/spring-integration/issues/6827 --- .../ip/config/spring-integration-ip.xsd | 254 ++++++++++++++---- 1 file changed, 197 insertions(+), 57 deletions(-) diff --git a/spring-integration-ip/src/main/resources/org/springframework/integration/ip/config/spring-integration-ip.xsd b/spring-integration-ip/src/main/resources/org/springframework/integration/ip/config/spring-integration-ip.xsd index 81aaba17c1..1d71695f69 100644 --- a/spring-integration-ip/src/main/resources/org/springframework/integration/ip/config/spring-integration-ip.xsd +++ b/spring-integration-ip/src/main/resources/org/springframework/integration/ip/config/spring-integration-ip.xsd @@ -35,6 +35,9 @@ + + The channel to produce messages from this adapter. + @@ -71,7 +74,7 @@ - + @@ -82,9 +85,18 @@ + + The channel to produce messages from this adapter. + + + + + + + The UDP host to connect to. + - @@ -97,8 +109,14 @@ - - + + + + If true, packets will request acknowledgment. + + + + A SpEL expression to be evaluated to determine which datagram @@ -107,11 +125,41 @@ - - - - - + + + + The host to which acks should be sent. Required if 'acknowledge' is true. + + + + + + + The port to which acks should be sent. + + + + + + + How long we will wait (milliseconds) for the ack. + + + + + + + If 'acknowledge' is true; how many acks needed for success. + + + + + + + Set the underlying {@link MulticastSocket} time to live property. + + + @@ -169,8 +217,7 @@ - + @@ -179,8 +226,7 @@ - + @@ -192,8 +238,7 @@ - + If set to true, causes the adapter to act as a client with respect @@ -261,8 +306,7 @@ - + If set to true, causes the adapter to establish a connection when @@ -302,13 +346,11 @@ - + - + @@ -317,19 +359,24 @@ - + - + + + + Set the timeout value for receiving reply messages. + If not explicitly configured, the default is one second. + + + - + @@ -346,8 +393,7 @@ - + If set to true, causes the gateway to act as a client with respect @@ -398,8 +444,7 @@ - + @@ -408,8 +453,7 @@ - + @@ -539,8 +583,7 @@ - + If true, the factory will use java.nio.channel.SocketChannel for @@ -551,13 +594,55 @@ - - - - - - - + + + + Enable/disable 'SocketOptions.SO_KEEPALIVE SO_KEEPALIVE'. + + + + + + + The 'SocketOptions.SO_LINGER SO_LINGER' in seconds. + + + + + + + The 'SocketOptions.SO_RCVBUF SO_RCVBUF' value. + + + + + + + The 'SocketOptions.SO_SNDBUF SO_SNDBUF' value. + + + + + + + Enable/disable 'SocketOptions.TCP_NODELAY TCP_NODELAY' (disable/enable Nagle's algorithm). + + + + + + + Enable/disable 'SocketOptions.SO_TIMEOUT SO_TIMEOUT' with the specified timeout, in milliseconds. + + + + + + + Sets traffic class or type-of-service octet in the IP header for packets sent from this Socket. + + + @@ -590,8 +675,7 @@ - + @@ -673,8 +757,7 @@ - + When set to "true", adds sequenceNumber and correlationId headers to @@ -831,8 +914,23 @@ - - + + + + The size of the buffer used to receive 'DatagramPackets'. + Usually set to the maximum transmission unit (MTU) size. + If a smaller buffer is used than the size of the sent packet, truncation can occur. + You can detect this by using the 'check-length' attribute. + + + + + + + When multicast is true, the multicast address to which the adapter joins. + + + @@ -865,12 +963,25 @@ - - + + + + Whether a UDP adapter expects a data length field in the packet received. + Used to detect packet truncation. + + + + + + + Whether the UDP adapter uses multicast. + + + - A SocketCustomizer bean. + A 'SocketCustomizer' bean. @@ -884,11 +995,41 @@ - - - - - + + + + The channel adapter (or gateway) bean name. + + + + + + + The port for connection. + + + + + + + The 'SO_RCVBUF' option of the `DatagramSocket`. + + + + + + + The 'SO_SNDBUF' option of the 'DatagramSocket'. + + + + + + + Enable/disable 'SO_TIMEOUT' with the specified timeout, in milliseconds. + + + @@ -909,8 +1050,7 @@ - + When in client mode, specifies the retry interval, in milliseconds, if