Class AbstractUdpOutboundChannelAdapterSpec<S extends AbstractUdpOutboundChannelAdapterSpec<S>>
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<S,UnicastSendingMessageHandler>
org.springframework.integration.ip.dsl.AbstractUdpOutboundChannelAdapterSpec<S>
- Type Parameters:
S
- the targetAbstractUdpOutboundChannelAdapterSpec
implementation type.
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<UnicastSendingMessageHandler>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
- Direct Known Subclasses:
UdpMulticastOutboundChannelAdapterSpec
,UdpUnicastOutboundChannelAdapterSpec
public abstract class AbstractUdpOutboundChannelAdapterSpec<S extends AbstractUdpOutboundChannelAdapterSpec<S>> extends MessageHandlerSpec<S,UnicastSendingMessageHandler>
A
MessageHandlerSpec
for UDP MessageHandler
s.- Since:
- 5.0
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractUdpOutboundChannelAdapterSpec()
protected
AbstractUdpOutboundChannelAdapterSpec(String destinationExpression)
protected
AbstractUdpOutboundChannelAdapterSpec(String host, int port)
protected
AbstractUdpOutboundChannelAdapterSpec(Function<Message<?>,?> destinationFunction)
-
Method Summary
Modifier and Type Method Description S
ackCounter(int ackCounter)
S
configureSocket(SocketCustomizer customizer)
Configure the socket.S
lengthCheck(boolean lengthCheck)
S
localAddress(String localAddress)
S
socketExpression(String socketExpression)
S
socketFunction(Function<Message<?>,DatagramSocket> socketFunction)
S
soReceiveBufferSize(int size)
S
soSendBufferSize(int size)
S
soTimeout(int timeout)
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
AbstractUdpOutboundChannelAdapterSpec
protected AbstractUdpOutboundChannelAdapterSpec() -
AbstractUdpOutboundChannelAdapterSpec
-
AbstractUdpOutboundChannelAdapterSpec
-
AbstractUdpOutboundChannelAdapterSpec
-
-
Method Details
-
soTimeout
- Parameters:
timeout
- the timeout socket option.- Returns:
- the spec.
- See Also:
AbstractInternetProtocolSendingMessageHandler.setSoTimeout(int)
-
soSendBufferSize
- Parameters:
size
- the send buffer size socket option.- Returns:
- the spec.
- See Also:
AbstractInternetProtocolSendingMessageHandler.setSoSendBufferSize(int)
-
localAddress
- Parameters:
localAddress
- the local address.- Returns:
- the spec.
- See Also:
UnicastSendingMessageHandler.setLocalAddress(String)
-
lengthCheck
- Parameters:
lengthCheck
- the length check boolean.- Returns:
- the spec.
- See Also:
UnicastSendingMessageHandler.setLengthCheck(boolean)
-
soReceiveBufferSize
- Parameters:
size
- the receive buffer size socket option.- Returns:
- the spec.
- See Also:
UnicastSendingMessageHandler.setSoReceiveBufferSize(int)
-
ackCounter
- Parameters:
ackCounter
- the ack counter.- Returns:
- the spec.
- See Also:
UnicastSendingMessageHandler.setAckCounter(int)
-
socketFunction
- Parameters:
socketFunction
- the socket function.- Returns:
- the spec.
- See Also:
UnicastSendingMessageHandler.setSocketExpression(org.springframework.expression.Expression)
-
socketExpression
- Parameters:
socketExpression
- the socket expression.- Returns:
- the spec.
- See Also:
UnicastSendingMessageHandler.setSocketExpressionString(String)
-
configureSocket
Configure the socket.- Parameters:
customizer
- the customizer.- Returns:
- the spec.
- Since:
- 5.3.3
-