java.lang.Object
org.springframework.integration.ip.dsl.Udp

public final class Udp extends Object
Factory methods for UDP.
Since:
5.0
Author:
Gary Russell
  • Method Details

    • inboundAdapter

      public static UdpInboundChannelAdapterSpec inboundAdapter(int port)
      Create an inbound unicast channel adapter using the supplied port.
      Parameters:
      port - the port.
      Returns:
      the spec.
    • inboundMulticastAdapter

      public static UdpInboundChannelAdapterSpec inboundMulticastAdapter(int port, 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(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(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(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.