Class Udp
java.lang.Object
org.springframework.integration.ip.dsl.Udp
Factory methods for UDP.
- Since:
- 5.0
- Author:
- Gary Russell
-
Method Summary
Modifier and TypeMethodDescriptionstatic UdpInboundChannelAdapterSpec
inboundAdapter
(int port) Create an inbound unicast channel adapter using the supplied port.static UdpInboundChannelAdapterSpec
inboundMulticastAdapter
(int port, String multicastGroup) Create an inbound multicast channel adapter using the supplied port and group.outboundAdapter
(String destinationExpression) Create an outbound unicast channel adapter using the supplied destination expression.outboundAdapter
(String host, int port) Create an outbound unicast channel adapter using the supplied host and port.outboundAdapter
(Function<Message<?>, ?> destinationFunction) Create an outbound unicast channel adapter using the supplied destination expression.outboundMulticastAdapter
(String destinationExpression) Create an outbound multicast channel adapter using the supplied destination expression.outboundMulticastAdapter
(String host, int port) Create an outbound multicast channel adapter using the supplied host and port.outboundMulticastAdapter
(Function<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
Create an inbound multicast channel adapter using the supplied port and group.- Parameters:
port
- the port.multicastGroup
- the group.- Returns:
- the spec.
-
outboundAdapter
Create an outbound unicast channel adapter using the supplied host and port.- Parameters:
host
- the host.port
- the port.- Returns:
- the spec.
-
outboundAdapter
Create an outbound unicast channel adapter using the supplied destination expression.- Parameters:
destinationExpression
- destination expression.- Returns:
- the spec.
-
outboundAdapter
public static UdpUnicastOutboundChannelAdapterSpec outboundAdapter(Function<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(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(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(Function<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.
-