S
- the target AbstractUdpOutboundChannelAdapterSpec
implementation type.public abstract class AbstractUdpOutboundChannelAdapterSpec<S extends AbstractUdpOutboundChannelAdapterSpec<S>> extends MessageHandlerSpec<S,UnicastSendingMessageHandler>
MessageHandlerSpec
for UDP MessageHandler
s.PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
AbstractUdpOutboundChannelAdapterSpec() |
protected |
AbstractUdpOutboundChannelAdapterSpec(java.util.function.Function<Message<?>,?> destinationFunction) |
protected |
AbstractUdpOutboundChannelAdapterSpec(String destinationExpression) |
protected |
AbstractUdpOutboundChannelAdapterSpec(String host,
int port) |
Modifier and Type | Method and 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(java.util.function.Function<Message<?>,DatagramSocket> socketFunction) |
S |
soReceiveBufferSize(int size) |
S |
soSendBufferSize(int size) |
S |
soTimeout(int timeout) |
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected AbstractUdpOutboundChannelAdapterSpec()
protected AbstractUdpOutboundChannelAdapterSpec(String host, int port)
protected AbstractUdpOutboundChannelAdapterSpec(String destinationExpression)
protected AbstractUdpOutboundChannelAdapterSpec(java.util.function.Function<Message<?>,?> destinationFunction)
public S soTimeout(int timeout)
timeout
- the timeout socket option.AbstractInternetProtocolSendingMessageHandler.setSoTimeout(int)
public S soSendBufferSize(int size)
size
- the send buffer size socket option.AbstractInternetProtocolSendingMessageHandler.setSoSendBufferSize(int)
public S localAddress(String localAddress)
localAddress
- the local address.UnicastSendingMessageHandler.setLocalAddress(String)
public S lengthCheck(boolean lengthCheck)
lengthCheck
- the length check boolean.UnicastSendingMessageHandler.setLengthCheck(boolean)
public S soReceiveBufferSize(int size)
size
- the receive buffer size socket option.UnicastSendingMessageHandler.setSoReceiveBufferSize(int)
public S ackCounter(int ackCounter)
ackCounter
- the ack counter.UnicastSendingMessageHandler.setAckCounter(int)
public S socketFunction(java.util.function.Function<Message<?>,DatagramSocket> socketFunction)
socketFunction
- the socket function.UnicastSendingMessageHandler.setSocketExpression(org.springframework.expression.Expression)
public S socketExpression(String socketExpression)
socketExpression
- the socket expression.UnicastSendingMessageHandler.setSocketExpressionString(String)
public S configureSocket(SocketCustomizer customizer)
customizer
- the customizer.