public final class Udp extends Object
Modifier and Type | Method and Description |
---|---|
static 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.
|
static UdpUnicastOutboundChannelAdapterSpec |
outboundAdapter(java.util.function.Function<Message<?>,?> destinationFunction)
Create an outbound unicast channel adapter using the supplied destination
expression.
|
static UdpUnicastOutboundChannelAdapterSpec |
outboundAdapter(String destinationExpression)
Create an outbound unicast channel adapter using the supplied destination
expression.
|
static UdpUnicastOutboundChannelAdapterSpec |
outboundAdapter(String host,
int port)
Create an outbound unicast channel adapter using the supplied host and port.
|
static UdpMulticastOutboundChannelAdapterSpec |
outboundMulticastAdapter(java.util.function.Function<Message<?>,?> destinationFunction)
Create an outbound multicast channel adapter using the supplied destination
expression.
|
static UdpMulticastOutboundChannelAdapterSpec |
outboundMulticastAdapter(String destinationExpression)
Create an outbound multicast channel adapter using the supplied destination
expression.
|
static UdpMulticastOutboundChannelAdapterSpec |
outboundMulticastAdapter(String host,
int port)
Create an outbound multicast channel adapter using the supplied host and port.
|
public static UdpInboundChannelAdapterSpec inboundAdapter(int port)
port
- the port.public static UdpInboundChannelAdapterSpec inboundMulticastAdapter(int port, String multicastGroup)
port
- the port.multicastGroup
- the group.public static UdpUnicastOutboundChannelAdapterSpec outboundAdapter(String host, int port)
host
- the host.port
- the port.public static UdpUnicastOutboundChannelAdapterSpec outboundAdapter(String destinationExpression)
destinationExpression
- destination expression.public static UdpUnicastOutboundChannelAdapterSpec outboundAdapter(java.util.function.Function<Message<?>,?> destinationFunction)
destinationFunction
- function that will provide the destination based on the message.public static UdpMulticastOutboundChannelAdapterSpec outboundMulticastAdapter(String host, int port)
host
- the host.port
- the port.public static UdpMulticastOutboundChannelAdapterSpec outboundMulticastAdapter(String destinationExpression)
destinationExpression
- destination expression.public static UdpMulticastOutboundChannelAdapterSpec outboundMulticastAdapter(java.util.function.Function<Message<?>,?> destinationFunction)
destinationFunction
- function that will provide the destination based on the message.