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:
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<UnicastSendingMessageHandler>,org.springframework.beans.factory.InitializingBean,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle
- Direct Known Subclasses:
UdpMulticastOutboundChannelAdapterSpec,UdpUnicastOutboundChannelAdapterSpec
public abstract class AbstractUdpOutboundChannelAdapterSpec<S extends AbstractUdpOutboundChannelAdapterSpec<S>> extends org.springframework.integration.dsl.MessageHandlerSpec<S,UnicastSendingMessageHandler>
A
MessageHandlerSpec for UDP MessageHandlers.- Since:
- 5.0
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractUdpOutboundChannelAdapterSpec()protectedAbstractUdpOutboundChannelAdapterSpec(java.lang.String destinationExpression)protectedAbstractUdpOutboundChannelAdapterSpec(java.lang.String host, int port)protectedAbstractUdpOutboundChannelAdapterSpec(java.util.function.Function<org.springframework.messaging.Message<?>,?> destinationFunction) -
Method Summary
Modifier and Type Method Description SackCounter(int ackCounter)SconfigureSocket(SocketCustomizer customizer)Configure the socket.SlengthCheck(boolean lengthCheck)SlocalAddress(java.lang.String localAddress)SsocketExpression(java.lang.String socketExpression)SsocketFunction(java.util.function.Function<org.springframework.messaging.Message<?>,java.net.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, stop
-
Constructor Details
-
AbstractUdpOutboundChannelAdapterSpec
protected AbstractUdpOutboundChannelAdapterSpec() -
AbstractUdpOutboundChannelAdapterSpec
protected AbstractUdpOutboundChannelAdapterSpec(java.lang.String host, int port) -
AbstractUdpOutboundChannelAdapterSpec
protected AbstractUdpOutboundChannelAdapterSpec(java.lang.String destinationExpression) -
AbstractUdpOutboundChannelAdapterSpec
protected AbstractUdpOutboundChannelAdapterSpec(java.util.function.Function<org.springframework.messaging.Message<?>,?> destinationFunction)
-
-
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
public S socketFunction(java.util.function.Function<org.springframework.messaging.Message<?>,java.net.DatagramSocket> 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
-