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
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
FieldsModifier and TypeFieldDescriptionprotected final io.netty.channel.Channelprotected final io.netty.util.concurrent.Promise<PCEPSession> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSession> promise, io.netty.channel.Channel channel) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidchannelActive(io.netty.channel.ChannelHandlerContext ctx) final voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) protected abstract voidhandleMessage(Message msg) protected voidnegotiationFailed(Throwable cause) protected final voidnegotiationSuccessful(PCEPSessionImpl session) protected final voidsendMessage(Message msg) protected abstract voidMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, 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, handlerRemovedMethods 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<PCEPSession> promise, io.netty.channel.Channel channel)
-
-
Method Details
-
negotiationSuccessful
-
negotiationFailed
-
sendMessage
-
channelActive
public final void channelActive(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter
-
channelRead
- Specified by:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
startNegotiation
- Throws:
ExecutionException
-
handleMessage
-