public class SimpleClientHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
Modifier and Type | Field and Description |
---|---|
protected ScenarioHandler |
scenarioHandler |
Constructor and Description |
---|
SimpleClientHandler(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture,
ScenarioHandler scenarioHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
setScenario(ScenarioHandler handler)
Sets the ScenarioHandler.
|
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected ScenarioHandler scenarioHandler
public SimpleClientHandler(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture, ScenarioHandler scenarioHandler)
isOnlineFuture
- future notifier of connected channelscenarioHandler
- handler of scenario eventspublic 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 channelActive(io.netty.channel.ChannelHandlerContext ctx)
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
public void setScenario(ScenarioHandler handler)
handler
- handler of scenario eventsCopyright © 2020 OpenDaylight. All rights reserved.