Class AbstractUdpOutboundChannelAdapterSpec<S extends AbstractUdpOutboundChannelAdapterSpec<S>>
java.lang.Object
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:
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
logger, PARSER, target
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
AbstractUdpOutboundChannelAdapterSpec
(String destinationExpression) protected
AbstractUdpOutboundChannelAdapterSpec
(String host, int port) protected
AbstractUdpOutboundChannelAdapterSpec
(Function<Message<?>, ?> destinationFunction) -
Method Summary
Modifier and TypeMethodDescriptionackCounter
(int ackCounter) configureSocket
(SocketCustomizer customizer) Configure the socket.lengthCheck
(boolean lengthCheck) localAddress
(String localAddress) socketExpression
(String socketExpression) socketFunction
(Function<Message<?>, DatagramSocket> socketFunction) soReceiveBufferSize
(int size) soSendBufferSize
(int size) soTimeout
(int timeout) Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, get, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
AbstractUdpOutboundChannelAdapterSpec
protected AbstractUdpOutboundChannelAdapterSpec() -
AbstractUdpOutboundChannelAdapterSpec
-
AbstractUdpOutboundChannelAdapterSpec
-
AbstractUdpOutboundChannelAdapterSpec
-
-
Method Details
-
soTimeout
- Parameters:
timeout
- the timeout socket option.- Returns:
- the spec.
- See Also:
-
soSendBufferSize
- Parameters:
size
- the send buffer size socket option.- Returns:
- the spec.
- See Also:
-
localAddress
- Parameters:
localAddress
- the local address.- Returns:
- the spec.
- See Also:
-
lengthCheck
- Parameters:
lengthCheck
- the length check boolean.- Returns:
- the spec.
- See Also:
-
soReceiveBufferSize
- Parameters:
size
- the receive buffer size socket option.- Returns:
- the spec.
- See Also:
-
ackCounter
- Parameters:
ackCounter
- the ack counter.- Returns:
- the spec.
- See Also:
-
socketFunction
- Parameters:
socketFunction
- the socket function.- Returns:
- the spec.
- See Also:
-
socketExpression
- Parameters:
socketExpression
- the socket expression.- Returns:
- the spec.
- See Also:
-
configureSocket
Configure the socket.- Parameters:
customizer
- the customizer.- Returns:
- the spec.
- Since:
- 5.3.3
-