@ChannelHandler.Sharable public class UniqueIpFilter extends AbstractRemoteAddressFilter<InetSocketAddress>
Channel connected to the server.| Constructor and Description |
|---|
UniqueIpFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(io.netty.channel.ChannelHandlerContext ctx,
InetSocketAddress remoteAddress)
This method is called immediately after a
Channel gets registered. |
channelAccepted, channelActive, channelRegistered, channelRejectedchannelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected boolean accept(io.netty.channel.ChannelHandlerContext ctx,
InetSocketAddress remoteAddress)
throws Exception
AbstractRemoteAddressFilterChannel gets registered.accept in class AbstractRemoteAddressFilter<InetSocketAddress>ExceptionCopyright © 2008–2019 The Netty Project. All rights reserved.