Package org.tinyradius.server
Class AbstractListener
- java.lang.Object
-
- org.tinyradius.server.AbstractListener
-
- Direct Known Subclasses:
RadiusClient
,RadiusServer
public abstract class AbstractListener extends java.lang.Object
-
-
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.
-
-
-
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 onlistenAddress
- the address to bind tochannelHandler
- 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
-
-