Class AbstractSessionNegotiator
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.opendaylight.protocol.pcep.impl.AbstractSessionNegotiator
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,SessionNegotiator
- Direct Known Subclasses:
AbstractPCEPSessionNegotiator
,PCEPSessionNegotiator
public abstract class AbstractSessionNegotiator
extends io.netty.channel.ChannelInboundHandlerAdapter
implements SessionNegotiator
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.netty.channel.Channel
protected final io.netty.util.concurrent.Promise<PCEPSessionImpl>
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSessionNegotiator
(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
channelActive
(io.netty.channel.ChannelHandlerContext ctx) final void
channelRead
(io.netty.channel.ChannelHandlerContext ctx, Object msg) void
exceptionCaught
(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) protected abstract void
handleMessage
(Message msg) protected void
negotiationFailed
(Throwable cause) protected final void
negotiationSuccessful
(PCEPSessionImpl session) protected final void
sendMessage
(Message msg) protected abstract void
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, 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
handlerAdded, handlerRemoved
Methods inherited from interface io.netty.channel.ChannelInboundHandler
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Field Details
-
channel
protected final io.netty.channel.Channel channel -
promise
-
-
Constructor Details
-
AbstractSessionNegotiator
protected AbstractSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel)
-
-
Method Details
-
negotiationSuccessful
-
negotiationFailed
-
sendMessage
-
channelActive
public final void channelActive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelActive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelActive
in classio.netty.channel.ChannelInboundHandlerAdapter
-
channelRead
- Specified by:
channelRead
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelRead
in classio.netty.channel.ChannelInboundHandlerAdapter
-
exceptionCaught
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelHandler
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
exceptionCaught
in classio.netty.channel.ChannelInboundHandlerAdapter
-
startNegotiation
- Throws:
ExecutionException
-
handleMessage
-