Class 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 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 sent
        listener - listener attached to channel.write(msg) Future
        address - recipient's address