public class SimpleClientInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
SimpleClient
pipeline.Constructor and Description |
---|
SimpleClientInitializer(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture,
boolean secured)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
initChannel(io.netty.channel.socket.SocketChannel ch) |
void |
setScenario(ScenarioHandler handler)
Sets the ScenarioHandler.
|
channelRegistered, exceptionCaught, handlerAdded
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
public SimpleClientInitializer(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture, boolean secured)
isOnlineFuture
- future notifier of connected channelsecured
- true if SimpleClient
should use encrypted communicationpublic void initChannel(io.netty.channel.socket.SocketChannel ch) throws Exception
initChannel
in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
Exception
public void setScenario(ScenarioHandler handler)
handler
- handler of scenario eventsCopyright © 2019 OpenDaylight. All rights reserved.