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, handlerRemoved
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)
initChannel
in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
public void setScenario(ScenarioHandler handler)
handler
- handler of scenario eventsCopyright © 2020 OpenDaylight. All rights reserved.