@Alias(value="udp-request-connection") public class UdpRequesterConnection extends AbstractUdpConnection implements RequesterConnection
RequesterConnection for UDP connections.objectSerializer, socket, socketPropertiesconnectionSettings, wasDisconnected| Constructor and Description |
|---|
UdpRequesterConnection(SocketConnectionSettings connectionSettings,
SocketConnectionSettings localAddressSettings,
UdpSocketProperties socketProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Configures a
DatagramSocket with the settings provided in the UdpSocketProperties and bounded to the
connection settings presents on localAddressSettings. |
SocketClient |
getClient()
Returns a new instance of
SocketClient particular to this connection. |
doDisconnect, newSocket, validatedisconnectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisconnect, validatepublic UdpRequesterConnection(SocketConnectionSettings connectionSettings, SocketConnectionSettings localAddressSettings, UdpSocketProperties socketProperties) throws org.mule.runtime.api.connection.ConnectionException
org.mule.runtime.api.connection.ConnectionExceptionpublic void connect()
throws org.mule.runtime.api.connection.ConnectionException
DatagramSocket with the settings provided in the UdpSocketProperties and bounded to the
connection settings presents on localAddressSettings.
It does not invoke DatagramSocket.connect(SocketAddress), because that will only allow the socket to receive packages
from the SocketAddress it has connected to.
connect in interface SocketConnectionorg.mule.runtime.api.connection.ConnectionException - if the configuration of the DatagramSocket failspublic SocketClient getClient()
SocketClient particular to this connection.getClient in interface RequesterConnectionSocketClient that can SocketClient.read() and SocketClient#write(Object) through the
socket.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.