Class SendEvent

  • All Implemented Interfaces:
    ClientEvent

    public class SendEvent
    extends Object
    implements ClientEvent
    Class representing sending message event.
    Author:
    michal.polkorab
    • Field Detail

      • msgToSend

        protected byte[] msgToSend
      • ctx

        protected io.netty.channel.ChannelHandlerContext ctx
    • Constructor Detail

      • SendEvent

        public SendEvent​(byte[] msgToSend)
        Constructor.
        Parameters:
        msgToSend - message to be sent
    • Method Detail

      • eventExecuted

        public boolean eventExecuted()
        Description copied from interface: ClientEvent
        Common method for triggering events.
        Specified by:
        eventExecuted in interface ClientEvent
        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)