Class MulticastReceivingChannelAdapter

All Implemented Interfaces:
Runnable, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, SmartInitializingSingleton, ApplicationContextAware, ApplicationEventPublisherAware, Lifecycle, Phased, SmartLifecycle, ExpressionCapable, MessageProducer, IntegrationPattern, CommonSocketOptions, NamedComponent, IntegrationInboundManagement, IntegrationManagement, ManageableLifecycle, ManageableSmartLifecycle, TrackableComponent, SchedulingAwareRunnable

public class MulticastReceivingChannelAdapter extends UnicastReceivingChannelAdapter
Channel adapter that joins a multicast group and receives incoming packets and sends them to an output channel.
Since:
2.0
Author:
Gary Russell, Marcin Pilaczynski, Artem Bilan, Christian Tzolov
  • Constructor Details

    • MulticastReceivingChannelAdapter

      public MulticastReceivingChannelAdapter(String group, int port)
      Constructs a MulticastReceivingChannelAdapter that listens for packets on the specified multichannel address (group) and port.
      Parameters:
      group - The multichannel address.
      port - The port.
    • MulticastReceivingChannelAdapter

      public MulticastReceivingChannelAdapter(String group, int port, boolean lengthCheck)
      Constructs a MulticastReceivingChannelAdapter that listens for packets on the specified multichannel address (group) and port. Enables setting the lengthCheck option, which expects a length to precede the incoming packets.
      Parameters:
      group - The multichannel address.
      port - The port.
      lengthCheck - If true, enables the lengthCheck Option.
  • Method Details