Class Udp
java.lang.Object
org.springframework.integration.ip.dsl.Udp
Factory methods for UDP.
- Since:
- 5.0
- Author:
- Gary Russell
- 
Method SummaryModifier and TypeMethodDescriptionstatic UdpInboundChannelAdapterSpecinboundAdapter(int port) Create an inbound unicast channel adapter using the supplied port.static UdpInboundChannelAdapterSpecinboundMulticastAdapter(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- 
inboundAdapterCreate an inbound unicast channel adapter using the supplied port.- Parameters:
- port- the port.
- Returns:
- the spec.
 
- 
inboundMulticastAdapterCreate an inbound multicast channel adapter using the supplied port and group.- Parameters:
- port- the port.
- multicastGroup- the group.
- Returns:
- the spec.
 
- 
outboundAdapterCreate an outbound unicast channel adapter using the supplied host and port.- Parameters:
- host- the host.
- port- the port.
- Returns:
- the spec.
 
- 
outboundAdapterCreate an outbound unicast channel adapter using the supplied destination expression.- Parameters:
- destinationExpression- destination expression.
- Returns:
- the spec.
 
- 
outboundAdapterpublic 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.
 
- 
outboundMulticastAdapterpublic 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.
 
- 
outboundMulticastAdapterpublic static UdpMulticastOutboundChannelAdapterSpec outboundMulticastAdapter(String destinationExpression) Create an outbound multicast channel adapter using the supplied destination expression.- Parameters:
- destinationExpression- destination expression.
- Returns:
- the spec.
 
- 
outboundMulticastAdapterpublic 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.
 
 
-