Package io.grpc.netty
Class InternalProtocolNegotiators.ProtocolNegotiationHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.grpc.netty.InternalProtocolNegotiators.ProtocolNegotiationHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,io.netty.channel.ChannelOutboundHandler
- Enclosing class:
InternalProtocolNegotiators
public static class InternalProtocolNegotiators.ProtocolNegotiationHandler
extends io.netty.channel.ChannelDuplexHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProtocolNegotiationHandler
(io.netty.channel.ChannelHandler next, ChannelLogger negotiationLogger) protected
ProtocolNegotiationHandler
(io.netty.channel.ChannelHandler next, String negotiatorName, ChannelLogger negotiationLogger) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
fireProtocolNegotiationEvent
(io.netty.channel.ChannelHandlerContext ctx) protected final ProtocolNegotiationEvent
final void
handlerAdded
(io.netty.channel.ChannelHandlerContext ctx) protected void
handlerAdded0
(io.netty.channel.ChannelHandlerContext ctx) protected void
protocolNegotiationEventTriggered
(io.netty.channel.ChannelHandlerContext ctx) protected final void
final void
userEventTriggered
(io.netty.channel.ChannelHandlerContext ctx, Object evt) protected void
userEventTriggered0
(io.netty.channel.ChannelHandlerContext ctx, Object evt) Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, read, write
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerRemoved
-
Constructor Details
-
ProtocolNegotiationHandler
protected ProtocolNegotiationHandler(io.netty.channel.ChannelHandler next, String negotiatorName, ChannelLogger negotiationLogger) -
ProtocolNegotiationHandler
protected ProtocolNegotiationHandler(io.netty.channel.ChannelHandler next, ChannelLogger negotiationLogger)
-
-
Method Details
-
handlerAdded
- Specified by:
handlerAdded
in interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerAdded
in classio.netty.channel.ChannelHandlerAdapter
- Throws:
Exception
-
handlerAdded0
@ForOverride protected void handlerAdded0(io.netty.channel.ChannelHandlerContext ctx) throws Exception - Throws:
Exception
-
userEventTriggered
public final void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception - Specified by:
userEventTriggered
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
userEventTriggered
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
userEventTriggered0
protected void userEventTriggered0(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception - Throws:
Exception
-
protocolNegotiationEventTriggered
@ForOverride protected void protocolNegotiationEventTriggered(io.netty.channel.ChannelHandlerContext ctx) -
getProtocolNegotiationEvent
-
replaceProtocolNegotiationEvent
-
fireProtocolNegotiationEvent
protected final void fireProtocolNegotiationEvent(io.netty.channel.ChannelHandlerContext ctx)
-