Class AbstractInternetProtocolSendingMessageHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.MessageHandlerSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.ip.AbstractInternetProtocolSendingMessageHandler
- All Implemented Interfaces:
- org.reactivestreams.Subscriber<Message<?>>,- Aware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- InitializingBean,- ApplicationContextAware,- Lifecycle,- Ordered,- ExpressionCapable,- Orderable,- IntegrationPattern,- CommonSocketOptions,- NamedComponent,- IntegrationManagement,- ManageableLifecycle,- TrackableComponent,- MessageHandler,- reactor.core.CoreSubscriber<Message<?>>
- Direct Known Subclasses:
- UnicastSendingMessageHandler
public abstract class AbstractInternetProtocolSendingMessageHandler
extends AbstractMessageHandler
implements CommonSocketOptions, ManageableLifecycle
Base class for UDP MessageHandlers.
- Since:
- 2.0
- Author:
- Gary Russell, 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.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.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voiddoStart()protected abstract voiddoStop()getHost()intgetPort()intintbooleanvoidsetSoReceiveBufferSize(int size) voidsetSoSendBufferSize(int size) voidsetSoTimeout(int timeout) voidstart()voidstop()Methods inherited from class org.springframework.integration.handler.AbstractMessageHandlerhandleMessage, handleMessageInternal, onComplete, onError, onNext, onSubscribe, setObservationConventionMethods inherited from class org.springframework.integration.handler.MessageHandlerSupportbuildSendTimer, destroy, getComponentType, getIntegrationPatternType, getManagedName, getManagedType, getMetricsCaptor, getObservationRegistry, getOrder, getOverrides, isLoggingEnabled, isObserved, registerMetricsCaptor, registerObservationRegistry, sendTimer, setLoggingEnabled, setManagedName, setManagedType, setOrder, setShouldTrack, shouldTrackMethods inherited from class org.springframework.integration.context.IntegrationObjectSupportafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, 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.ip.CommonSocketOptionssetLocalAddressMethods inherited from interface reactor.core.CoreSubscribercurrentContextMethods inherited from interface org.springframework.integration.support.management.IntegrationManagementgetThisAsMethods inherited from interface org.springframework.integration.support.context.NamedComponentgetBeanName, getComponentName
- 
Constructor Details- 
AbstractInternetProtocolSendingMessageHandler
 
- 
- 
Method Details- 
setSoTimeoutpublic void setSoTimeout(int timeout) - Specified by:
- setSoTimeoutin interface- CommonSocketOptions
- Parameters:
- timeout- The timeout.
- See Also:
 
- 
setSoReceiveBufferSizepublic void setSoReceiveBufferSize(int size) - Specified by:
- setSoReceiveBufferSizein interface- CommonSocketOptions
- Parameters:
- size- The receive buffer size.
- See Also:
 
- 
setSoSendBufferSizepublic void setSoSendBufferSize(int size) - Specified by:
- setSoSendBufferSizein interface- CommonSocketOptions
- Parameters:
- size- The send buffer size.
- See Also:
 
- 
getHost- Returns:
- the host
 
- 
getPortpublic int getPort()- Returns:
- the port
 
- 
getDestinationAddress- Returns:
- the destinationAddress
 
- 
getSoTimeoutpublic int getSoTimeout()- Returns:
- the soTimeout
 
- 
getSoSendBufferSizepublic int getSoSendBufferSize()- Returns:
- the soSendBufferSize
 
- 
startpublic void start()- Specified by:
- startin interface- Lifecycle
- Specified by:
- startin interface- ManageableLifecycle
 
- 
doStartprotected abstract void doStart()
- 
stoppublic void stop()- Specified by:
- stopin interface- Lifecycle
- Specified by:
- stopin interface- ManageableLifecycle
 
- 
doStopprotected abstract void doStop()
- 
isRunningpublic boolean isRunning()- Specified by:
- isRunningin interface- Lifecycle
- Specified by:
- isRunningin interface- ManageableLifecycle
 
 
-