@ChannelHandler.Sharable public class UniqueIpFilter extends AbstractRemoteAddressFilter<java.net.InetSocketAddress>
ChannelHandler.Sharable| Constructor and Description |
|---|
UniqueIpFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accept(ChannelHandlerContext ctx, java.net.InetSocketAddress remoteAddress)
在 Channel获得注册后立即调用此方法。
|
channelAccepted, channelActive, channelRegistered, channelRejectedchannelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedprotected boolean accept(ChannelHandlerContext ctx, java.net.InetSocketAddress remoteAddress) throws java.lang.Exception
AbstractRemoteAddressFilter
Channel获得注册后立即调用此方法。
accept在类
AbstractRemoteAddressFilter<java.net.InetSocketAddress>
java.lang.Exception
Copyright © 2008–2018 The Netty Project. All rights reserved.