org.springframework.integration.ip
Class AbstractInternetProtocolSendingMessageHandler
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.handler.AbstractMessageHandler
org.springframework.integration.ip.AbstractInternetProtocolSendingMessageHandler
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, Ordered, NamedComponent, MessageHandler, TrackableComponent, CommonSocketOptions
- Direct Known Subclasses:
- UnicastSendingMessageHandler
public abstract class AbstractInternetProtocolSendingMessageHandler
- extends AbstractMessageHandler
- implements CommonSocketOptions
Base class for all TCP/UDP MessageHandlers.
- Since:
- 2.0
- Author:
- Gary Russell
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getConversionService, getRequiredMetadataPersister, getTaskScheduler, onInit, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
logger
protected final org.apache.commons.logging.Log logger
destinationAddress
protected final SocketAddress destinationAddress
host
protected final String host
port
protected final int port
soSendBufferSize
protected volatile int soSendBufferSize
soTimeout
protected volatile int soTimeout
AbstractInternetProtocolSendingMessageHandler
public AbstractInternetProtocolSendingMessageHandler(String host,
int port)
setSoTimeout
public void setSoTimeout(int timeout)
- Specified by:
setSoTimeout
in interface CommonSocketOptions
- Parameters:
timeout
- - See Also:
Socket.setSoTimeout(int)
,
DatagramSocket.setSoTimeout(int)
setSoReceiveBufferSize
public void setSoReceiveBufferSize(int size)
- Specified by:
setSoReceiveBufferSize
in interface CommonSocketOptions
- Parameters:
size
- - See Also:
Socket.setReceiveBufferSize(int)
,
DatagramSocket.setReceiveBufferSize(int)
setSoSendBufferSize
public void setSoSendBufferSize(int size)
- Specified by:
setSoSendBufferSize
in interface CommonSocketOptions
- Parameters:
size
- - See Also:
Socket.setSendBufferSize(int)
,
DatagramSocket.setSendBufferSize(int)
getPort
public int getPort()
- Returns:
- the port
Copyright © 2010. All Rights Reserved.