Class SendEvent
java.lang.Object
org.opendaylight.openflowjava.protocol.impl.clients.SendEvent
- All Implemented Interfaces:
ClientEvent
Class representing sending message event.
- Author:
- michal.polkorab
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCommon method for triggering events.voidsetCtx(io.netty.channel.ChannelHandlerContext ctx) Sets the ChannelHandlerContext.
-
Field Details
-
msgToSend
protected byte[] msgToSend -
ctx
protected io.netty.channel.ChannelHandlerContext ctx
-
-
Constructor Details
-
SendEvent
public SendEvent(byte[] msgToSend) Constructor.- Parameters:
msgToSend- message to be sent
-
-
Method Details
-
eventExecuted
public boolean eventExecuted()Description copied from interface:ClientEventCommon method for triggering events.- Specified by:
eventExecutedin interfaceClientEvent- Returns:
- true if event executed successfully
-
setCtx
public void setCtx(io.netty.channel.ChannelHandlerContext ctx) Sets the ChannelHandlerContext.- Parameters:
ctx- context which will be used for sending messages (SendEvents)
-