Class MulticastReceivingChannelAdapter
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.endpoint.AbstractEndpoint
org.springframework.integration.endpoint.MessageProducerSupport
org.springframework.integration.ip.udp.inbound.AbstractInternetProtocolReceivingChannelAdapter
org.springframework.integration.ip.udp.inbound.UnicastReceivingChannelAdapter
org.springframework.integration.ip.udp.inbound.MulticastReceivingChannelAdapter
- All Implemented Interfaces:
- Runnable,- Aware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- InitializingBean,- SmartInitializingSingleton,- ApplicationContextAware,- ApplicationEventPublisherAware,- Lifecycle,- Phased,- SmartLifecycle,- ComponentSourceAware,- ExpressionCapable,- MessageProducer,- IntegrationPattern,- CommonSocketOptions,- NamedComponent,- IntegrationInboundManagement,- IntegrationManagement,- ManageableLifecycle,- ManageableSmartLifecycle,- TrackableComponent,- SchedulingAwareRunnable
- Direct Known Subclasses:
- MulticastReceivingChannelAdapter
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
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagementIntegrationManagement.ManagementOverrides
- 
Field SummaryFields inherited from class org.springframework.integration.ip.udp.inbound.UnicastReceivingChannelAdapterlockFields inherited from class org.springframework.integration.endpoint.AbstractEndpointlifecycleLockFields inherited from class org.springframework.integration.context.IntegrationObjectSupportEXPRESSION_PARSER, loggerFields inherited from interface org.springframework.integration.support.management.IntegrationManagementMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAMEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsConstructorDescriptionMulticastReceivingChannelAdapter(String group, int port) Construct a MulticastReceivingChannelAdapter that listens for packets on the specified multichannel address (group) and port.MulticastReceivingChannelAdapter(String group, int port, boolean lengthCheck) Construct a MulticastReceivingChannelAdapter that listens for packets on the specified multichannel address (group) and port.
- 
Method SummaryMethods inherited from class org.springframework.integration.ip.udp.inbound.UnicastReceivingChannelAdapterasyncSendMessage, doSend, doStop, getComponentType, getPort, getTheSocket, isLongLived, onInit, receive, run, sendAck, setLengthCheck, setLookupHost, setSocket, setSocketAttributes, setSocketCustomizer, setSoSendBufferSizeMethods inherited from class org.springframework.integration.ip.udp.inbound.AbstractInternetProtocolReceivingChannelAdaptercheckTaskExecutor, doStart, getApplicationEventPublisher, getLocalAddress, getReceiveBufferSize, getSoReceiveBufferSize, getSoTimeout, getTaskExecutor, isListening, setApplicationEventPublisher, setListening, setLocalAddress, setPoolSize, setReceiveBufferSize, setSoReceiveBufferSize, setSoTimeout, setTaskExecutorMethods inherited from class org.springframework.integration.endpoint.MessageProducerSupportafterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getErrorMessageStrategy, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, getRequiredOutputChannel, isObserved, registerObservationRegistry, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setObservationConvention, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisherMethods inherited from class org.springframework.integration.endpoint.AbstractEndpointdestroy, doStop, getPhase, getRole, isActive, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopMethods inherited from class org.springframework.integration.context.IntegrationObjectSupportafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.integration.support.management.IntegrationManagementdestroy, getManagedName, getManagedType, getOverrides, getThisAs, isLoggingEnabled, registerMetricsCaptor, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from interface org.springframework.integration.support.context.NamedComponentgetBeanName, getComponentNameMethods inherited from interface org.springframework.scheduling.SchedulingAwareRunnablegetQualifierMethods inherited from interface org.springframework.context.SmartLifecycleisPauseable
- 
Constructor Details- 
MulticastReceivingChannelAdapterConstruct a MulticastReceivingChannelAdapter that listens for packets on the specified multichannel address (group) and port.- Parameters:
- group- The multichannel address.
- port- The port.
 
- 
MulticastReceivingChannelAdapterConstruct 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- 
getSocket- Overrides:
- getSocketin class- UnicastReceivingChannelAdapter
 
 
-