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
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
public UdpSimpleClientInitializer(com.google.common.util.concurrent.SettableFuture<Boolean> isOnlineFuture)
isOnlineFuture
- future notifier of connected channelpublic void initChannel(io.netty.channel.socket.DatagramChannel ch) throws Exception
initChannel
in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.DatagramChannel>
Exception
public void setScenario(ScenarioHandler handler)
handler
- handler of scenario eventsCopyright © 2019 OpenDaylight. All rights reserved.