Class UdpMessageListenerWrapper
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.core.connection.MessageListenerWrapper
-
- org.opendaylight.openflowjava.protocol.impl.core.connection.UdpMessageListenerWrapper
-
public class UdpMessageListenerWrapper extends MessageListenerWrapper
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
Constructors Constructor Description UdpMessageListenerWrapper(Object msg, io.netty.util.concurrent.GenericFutureListener<io.netty.util.concurrent.Future<Void>> listener, InetSocketAddress address)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InetSocketAddress
getAddress()
Returns recipient address.-
Methods inherited from class org.opendaylight.openflowjava.protocol.impl.core.connection.MessageListenerWrapper
getListener, getMsg
-
-
-
-
Constructor Detail
-
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 Detail
-
getAddress
public InetSocketAddress getAddress()
Returns recipient address.
-
-