Class WaitForMessageEvent

  • All Implemented Interfaces:
    ClientEvent

    public class WaitForMessageEvent
    extends Object
    implements ClientEvent
    Class representing waiting on message.
    Author:
    michal.polkorab
    • Constructor Detail

      • WaitForMessageEvent

        public WaitForMessageEvent​(byte[] headerExpected)
        Constructor.
        Parameters:
        headerExpected - header (first 8 bytes) of expected message
    • 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
      • setHeaderReceived

        public void setHeaderReceived​(byte[] headerReceived)
        Sets the received header.
        Parameters:
        headerReceived - header (first 8 bytes) of expected message