Class AbstractListener

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected io.netty.channel.EventLoopGroup eventLoopGroup  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractListener​(io.netty.channel.EventLoopGroup eventLoopGroup)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected io.netty.channel.ChannelFuture listen​(io.netty.channel.socket.DatagramChannel channel, java.net.SocketAddress listenAddress, io.netty.channel.ChannelHandler channelHandler)  
      abstract io.netty.util.concurrent.Future<java.lang.Void> start​()
      Initialize dependencies.
      abstract io.netty.util.concurrent.Future<java.lang.Void> stop​()
      Shutdown and close resources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • eventLoopGroup

        protected final io.netty.channel.EventLoopGroup eventLoopGroup
    • Constructor Detail

      • AbstractListener

        protected AbstractListener​(io.netty.channel.EventLoopGroup eventLoopGroup)
    • Method Detail

      • listen

        protected io.netty.channel.ChannelFuture listen​(io.netty.channel.socket.DatagramChannel channel,
                                                        java.net.SocketAddress listenAddress,
                                                        io.netty.channel.ChannelHandler channelHandler)
        Parameters:
        channel - to listen on
        listenAddress - the address to bind to
        channelHandler - handler to attach to end of channel pipeline
        Returns:
        channel that resolves after it is bound to address and registered with eventLoopGroup
      • start

        public abstract io.netty.util.concurrent.Future<java.lang.Void> start​()
        Initialize dependencies.
        Returns:
        future completes when required resources have been set up.
      • stop

        public abstract io.netty.util.concurrent.Future<java.lang.Void> stop​()
        Shutdown and close resources.
        Returns:
        future completes when resources shutdown