Class Udp
java.lang.Object
org.springframework.integration.ip.dsl.Udp
public final class Udp
extends java.lang.Object
Factory methods for UDP.
- Since:
- 5.0
-
Method Summary
Modifier and Type Method Description static UdpInboundChannelAdapterSpecinboundAdapter(int port)Create an inbound unicast channel adapter using the supplied port.static UdpInboundChannelAdapterSpecinboundMulticastAdapter(int port, java.lang.String multicastGroup)Create an inbound multicast channel adapter using the supplied port and group.static UdpUnicastOutboundChannelAdapterSpecoutboundAdapter(java.lang.String destinationExpression)Create an outbound unicast channel adapter using the supplied destination expression.static UdpUnicastOutboundChannelAdapterSpecoutboundAdapter(java.lang.String host, int port)Create an outbound unicast channel adapter using the supplied host and port.static UdpUnicastOutboundChannelAdapterSpecoutboundAdapter(java.util.function.Function<org.springframework.messaging.Message<?>,?> destinationFunction)Create an outbound unicast channel adapter using the supplied destination expression.static UdpMulticastOutboundChannelAdapterSpecoutboundMulticastAdapter(java.lang.String destinationExpression)Create an outbound multicast channel adapter using the supplied destination expression.static UdpMulticastOutboundChannelAdapterSpecoutboundMulticastAdapter(java.lang.String host, int port)Create an outbound multicast channel adapter using the supplied host and port.static UdpMulticastOutboundChannelAdapterSpecoutboundMulticastAdapter(java.util.function.Function<org.springframework.messaging.Message<?>,?> destinationFunction)Create an outbound multicast channel adapter using the supplied destination expression.
-
Method Details
-
inboundAdapter
Create an inbound unicast channel adapter using the supplied port.- Parameters:
port- the port.- Returns:
- the spec.
-
inboundMulticastAdapter
public static UdpInboundChannelAdapterSpec inboundMulticastAdapter(int port, java.lang.String multicastGroup)Create an inbound multicast channel adapter using the supplied port and group.- Parameters:
port- the port.multicastGroup- the group.- Returns:
- the spec.
-
outboundAdapter
public static UdpUnicastOutboundChannelAdapterSpec outboundAdapter(java.lang.String host, int port)Create an outbound unicast channel adapter using the supplied host and port.- Parameters:
host- the host.port- the port.- Returns:
- the spec.
-
outboundAdapter
public static UdpUnicastOutboundChannelAdapterSpec outboundAdapter(java.lang.String destinationExpression)Create an outbound unicast channel adapter using the supplied destination expression.- Parameters:
destinationExpression- destination expression.- Returns:
- the spec.
-
outboundAdapter
public static UdpUnicastOutboundChannelAdapterSpec outboundAdapter(java.util.function.Function<org.springframework.messaging.Message<?>,?> destinationFunction)Create an outbound unicast channel adapter using the supplied destination expression.- Parameters:
destinationFunction- function that will provide the destination based on the message.- Returns:
- the spec.
-
outboundMulticastAdapter
public static UdpMulticastOutboundChannelAdapterSpec outboundMulticastAdapter(java.lang.String host, int port)Create an outbound multicast channel adapter using the supplied host and port.- Parameters:
host- the host.port- the port.- Returns:
- the spec.
-
outboundMulticastAdapter
public static UdpMulticastOutboundChannelAdapterSpec outboundMulticastAdapter(java.lang.String destinationExpression)Create an outbound multicast channel adapter using the supplied destination expression.- Parameters:
destinationExpression- destination expression.- Returns:
- the spec.
-
outboundMulticastAdapter
public static UdpMulticastOutboundChannelAdapterSpec outboundMulticastAdapter(java.util.function.Function<org.springframework.messaging.Message<?>,?> destinationFunction)Create an outbound multicast channel adapter using the supplied destination expression.- Parameters:
destinationFunction- function that will provide the destination based on the message.- Returns:
- the spec.
-