public class UdpSimpleClientInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>
Constructor and Description |
---|
UdpSimpleClientInitializer(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
initChannel(io.netty.channel.socket.DatagramChannel ch) |
void |
setScenario(ScenarioHandler handler)
Sets the ScenarioHandler.
|
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
public UdpSimpleClientInitializer(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture)
isOnlineFuture
- future notifier of connected channelpublic void initChannel(io.netty.channel.socket.DatagramChannel ch)
initChannel
in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>
public void setScenario(ScenarioHandler handler)
handler
- handler of scenario eventsCopyright © 2020 OpenDaylight. All rights reserved.