Class UdpInboundChannelAdapterSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,P>
org.springframework.integration.dsl.MessageProducerSpec<UdpInboundChannelAdapterSpec,UnicastReceivingChannelAdapter>
org.springframework.integration.ip.dsl.UdpInboundChannelAdapterSpec
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean<UnicastReceivingChannelAdapter>,org.springframework.beans.factory.InitializingBean,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
public class UdpInboundChannelAdapterSpec
extends org.springframework.integration.dsl.MessageProducerSpec<UdpInboundChannelAdapterSpec,UnicastReceivingChannelAdapter>
A
MessageProducerSpec for UnicastReceivingChannelAdapters.- Since:
- 5.0
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, targetFields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUdpInboundChannelAdapterSpec(int port) protectedUdpInboundChannelAdapterSpec(int port, String multicastGroup) -
Method Summary
Modifier and TypeMethodDescriptionconfigureSocket(SocketCustomizer customizer) Configure the socket.lengthCheck(boolean lengthCheck) localAddress(String localAddress) lookupHost(boolean lookupHost) poolSize(int poolSize) receiveBufferSize(int receiveBufferSize) socket(DatagramSocket socket) soReceiveBufferSize(int soReceiveBufferSize) soSendBufferSize(int soSendBufferSize) soTimeout(int soTimeout) taskExecutor(Executor taskExecutor) taskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler) Methods inherited from class org.springframework.integration.dsl.MessageProducerSpec
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, outputChannel, outputChannel, phase, sendTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
UdpInboundChannelAdapterSpec
protected UdpInboundChannelAdapterSpec(int port) -
UdpInboundChannelAdapterSpec
-
-
Method Details
-
soTimeout
- Parameters:
soTimeout- set the timeout socket option.- Returns:
- the spec.
- See Also:
-
taskScheduler
public UdpInboundChannelAdapterSpec taskScheduler(org.springframework.scheduling.TaskScheduler taskScheduler) - Parameters:
taskScheduler- set the task scheduler.- Returns:
- the spec.
- See Also:
-
IntegrationObjectSupport.setTaskScheduler(TaskScheduler)
-
soReceiveBufferSize
- Parameters:
soReceiveBufferSize- set the receive buffer size socket option.- Returns:
- the spec.
- See Also:
-
receiveBufferSize
- Parameters:
receiveBufferSize- set the receive buffer size.- Returns:
- the spec.
- See Also:
-
lengthCheck
- Parameters:
lengthCheck- set the length check boolean.- Returns:
- the spec.
- See Also:
-
localAddress
- Parameters:
localAddress- set the local address.- Returns:
- the spec.
- See Also:
-
poolSize
- Parameters:
poolSize- set the pool size.- Returns:
- the spec.
- See Also:
-
taskExecutor
- Parameters:
taskExecutor- set the task executor.- Returns:
- the spec.
- See Also:
-
socket
- Parameters:
socket- set the socket.- Returns:
- the spec.
- See Also:
-
soSendBufferSize
- Parameters:
soSendBufferSize- set the send buffer size socket option.- Returns:
- the spec.
- See Also:
-
lookupHost
- Parameters:
lookupHost- set true to reverse lookup the host.- Returns:
- the spec.
- See Also:
-
configureSocket
Configure the socket.- Parameters:
customizer- the customizer.- Returns:
- the spec.
- Since:
- 5.3.3
-