Class AcceptChannelHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.ipfilter.AbstractRemoteAddressFilter<InetSocketAddress>
org.elasticsearch.transport.netty4.AcceptChannelHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
@Sharable
public class AcceptChannelHandler
extends io.netty.handler.ipfilter.AbstractRemoteAddressFilter<InetSocketAddress>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionAcceptChannelHandler(BiPredicate<String, InetSocketAddress> predicate, String profile, ThreadContext threadContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaccept(io.netty.channel.ChannelHandlerContext ctx, InetSocketAddress remoteAddress) Methods inherited from class io.netty.handler.ipfilter.AbstractRemoteAddressFilter
channelAccepted, channelActive, channelRegistered, channelRejectedMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
AcceptChannelHandler
public AcceptChannelHandler(BiPredicate<String, InetSocketAddress> predicate, String profile, ThreadContext threadContext)
-
-
Method Details
-
accept
protected boolean accept(io.netty.channel.ChannelHandlerContext ctx, InetSocketAddress remoteAddress) throws Exception - Specified by:
acceptin classio.netty.handler.ipfilter.AbstractRemoteAddressFilter<InetSocketAddress>- Throws:
Exception
-