Class UdpMessageListenerWrapper
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.core.connection.MessageListenerWrapper
org.opendaylight.openflowjava.protocol.impl.core.connection.UdpMessageListenerWrapper
Wraps outgoing message and includes listener attached to this message. This object
is sent to OFEncoder. When OFEncoder fails to serialize the message,
listener is filled with exception. The exception is then delegated to upper ODL layers.
This object is used for UDP communication - it also carries recipient address
- Author:
- michal.polkorab
-
Constructor Summary
ConstructorsConstructorDescriptionUdpMessageListenerWrapper
(Object msg, io.netty.util.concurrent.GenericFutureListener<io.netty.util.concurrent.Future<Void>> listener, InetSocketAddress address) Constructor. -
Method Summary
Methods inherited from class org.opendaylight.openflowjava.protocol.impl.core.connection.MessageListenerWrapper
getListener, getMsg
-
Constructor Details
-
UdpMessageListenerWrapper
public UdpMessageListenerWrapper(Object msg, io.netty.util.concurrent.GenericFutureListener<io.netty.util.concurrent.Future<Void>> listener, InetSocketAddress address) Constructor.- Parameters:
msg
- message to be sentlistener
- listener attached to channel.write(msg) Futureaddress
- recipient's address
-
-
Method Details
-
getAddress
Returns recipient address.
-