public class UnicastReceivingChannelAdapter extends AbstractInternetProtocolReceivingChannelAdapter
logger| Constructor and Description |
|---|
UnicastReceivingChannelAdapter(int port)
Constructs a UnicastReceivingChannelAdapter that listens on the specified port.
|
UnicastReceivingChannelAdapter(int port,
boolean lengthCheck)
Constructs a UnicastReceivingChannelAdapter that listens for packets on
the specified port.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
asyncSendMessage(java.net.DatagramPacket packet) |
protected void |
doStop()
Takes no action by default.
|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected java.net.DatagramSocket |
getSocket() |
protected java.net.DatagramSocket |
getTheSocket() |
protected java.net.DatagramPacket |
receive() |
void |
run() |
protected void |
sendAck(Message<byte[]> message) |
void |
setLookupHost(boolean lookupHost) |
void |
setSocket(java.net.DatagramSocket socket) |
protected void |
setSocketAttributes(java.net.DatagramSocket socket)
Sets timeout and receive buffer size
|
void |
setSoSendBufferSize(int soSendBufferSize) |
checkTaskExecutor, doStart, getLocalAddress, getPort, getReceiveBufferSize, getSoReceiveBufferSize, getSoTimeout, getTaskExecutor, isActive, isListening, setListening, setLocalAddress, setPoolSize, setReceiveBufferSize, setSoReceiveBufferSize, setSoTimeout, setTaskExecutoronInit, sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrackgetPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stopafterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComponentNamepublic UnicastReceivingChannelAdapter(int port)
port - public UnicastReceivingChannelAdapter(int port,
boolean lengthCheck)
port - The port.lengthCheck - If true, enables the lengthCheck Option.public void run()
protected void sendAck(Message<byte[]> message)
protected boolean asyncSendMessage(java.net.DatagramPacket packet)
protected java.net.DatagramPacket receive()
throws java.lang.Exception
java.lang.Exceptionpublic void setSocket(java.net.DatagramSocket socket)
socket - the socket to setprotected java.net.DatagramSocket getTheSocket()
protected java.net.DatagramSocket getSocket()
protected void setSocketAttributes(java.net.DatagramSocket socket)
throws java.net.SocketException
socket - java.net.SocketExceptionprotected void doStop()
MessageProducerSupportdoStop in class AbstractInternetProtocolReceivingChannelAdapterpublic void setSoSendBufferSize(int soSendBufferSize)
Socket.setSendBufferSize(int),
DatagramSocket.setSendBufferSize(int)public void setLookupHost(boolean lookupHost)
public java.lang.String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupport