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 targetAbstractUdpOutboundChannelAdapterSpecimplementation 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 MessageHandlers.- 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 protectedAbstractUdpOutboundChannelAdapterSpec()protectedAbstractUdpOutboundChannelAdapterSpec(String destinationExpression)protectedAbstractUdpOutboundChannelAdapterSpec(String host, int port)protectedAbstractUdpOutboundChannelAdapterSpec(Function<Message<?>,?> destinationFunction) -
Method Summary
Modifier and Type Method Description SackCounter(int ackCounter)SconfigureSocket(SocketCustomizer customizer)Configure the socket.SlengthCheck(boolean lengthCheck)SlocalAddress(String localAddress)SsocketExpression(String socketExpression)SsocketFunction(Function<Message<?>,DatagramSocket> socketFunction)SsoReceiveBufferSize(int size)SsoSendBufferSize(int size)SsoTimeout(int timeout)Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, 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
-
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
-