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, handlerAddedchannelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerRemoved, isSharablepublic 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>Exceptionpublic void setScenario(ScenarioHandler handler)
handler - handler of scenario eventsCopyright © 2019 OpenDaylight. All rights reserved.