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, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected 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.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
public final void channelRead(io.netty.channel.ChannelHandlerContext ctx, Object msg)
channelRead
in interface io.netty.channel.ChannelInboundHandler
channelRead
in class io.netty.channel.ChannelInboundHandlerAdapter
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
protected abstract void startNegotiation() throws ExecutionException
ExecutionException
protected abstract void handleMessage(Message msg)
Copyright © 2019 OpenDaylight. All rights reserved.