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