public class SendEvent extends Object implements ClientEvent
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.channel.ChannelHandlerContext |
ctx |
protected byte[] |
msgToSend |
| Constructor and Description |
|---|
SendEvent(byte[] msgToSend)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
eventExecuted()
Common method for triggering events.
|
void |
setCtx(io.netty.channel.ChannelHandlerContext ctx)
Sets the ChannelHandlerContext.
|
protected byte[] msgToSend
protected io.netty.channel.ChannelHandlerContext ctx
public SendEvent(byte[] msgToSend)
msgToSend - message to be sentpublic boolean eventExecuted()
ClientEventeventExecuted in interface ClientEventpublic void setCtx(io.netty.channel.ChannelHandlerContext ctx)
ctx - context which will be used for sending messages (SendEvents)Copyright © 2019 OpenDaylight. All rights reserved.