org.springframework.integration.ip.udp
Class MulticastReceivingChannelAdapter
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.ip.AbstractInternetProtocolReceivingChannelAdapter
org.springframework.integration.ip.udp.UnicastReceivingChannelAdapter
org.springframework.integration.ip.udp.MulticastReceivingChannelAdapter
- All Implemented Interfaces:
- Runnable, BeanFactoryAware, BeanNameAware, InitializingBean, Lifecycle, Phased, SmartLifecycle, NamedComponent, MessageProducer, TrackableComponent, CommonSocketOptions
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
Constructor Summary |
MulticastReceivingChannelAdapter(String group,
int port)
Constructs a MulticastReceivingChannelAdapter that listens for packets on the
specified multichannel address (group) and port. |
MulticastReceivingChannelAdapter(String group,
int port,
boolean lengthCheck)
Constructs a MulticastReceivingChannelAdapter that listens for packets on the
specified multichannel address (group) and port. |
Methods inherited from class org.springframework.integration.ip.AbstractInternetProtocolReceivingChannelAdapter |
checkTaskExecutor, doStart, getLocalAddress, getPort, isListening, setLocalAddress, setPoolSize, setReceiveBufferSize, setSoReceiveBufferSize, setSoTimeout, setTaskExecutor |
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, toString |
group
protected String group
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.
getSocket
protected DatagramSocket getSocket()
- Overrides:
getSocket
in class UnicastReceivingChannelAdapter
Copyright © 2010. All Rights Reserved.