public abstract class AbstractSessionNegotiator extends io.netty.channel.ChannelInboundHandlerAdapter implements SessionNegotiator
| Modifier and Type | Field and Description | 
|---|---|
| protected io.netty.channel.Channel | channel | 
| protected io.netty.util.concurrent.Promise<PCEPSessionImpl> | promise | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | AbstractSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise,
                         io.netty.channel.Channel channel) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | channelActive(io.netty.channel.ChannelHandlerContext ctx) | 
| 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 void | negotiationSuccessful(PCEPSessionImpl session) | 
| protected void | sendMessage(Message msg) | 
| protected abstract void | startNegotiation() | 
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredhandlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final io.netty.channel.Channel channel
protected final io.netty.util.concurrent.Promise<PCEPSessionImpl> promise
protected AbstractSessionNegotiator(io.netty.util.concurrent.Promise<PCEPSessionImpl> promise, io.netty.channel.Channel channel)
protected final void negotiationSuccessful(PCEPSessionImpl session)
protected void negotiationFailed(Throwable cause)
protected final void sendMessage(Message msg)
public final void channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterpublic final void channelRead(io.netty.channel.ChannelHandlerContext ctx,
                              Object msg)
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
                            Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterprotected abstract void startNegotiation()
                                  throws ExecutionException
ExecutionExceptionprotected abstract void handleMessage(Message msg)
Copyright © 2018 OpenDaylight. All rights reserved.