Class SleepEvent

  • All Implemented Interfaces:
    ClientEvent

    public class SleepEvent
    extends Object
    implements ClientEvent
    Class representing sleep (wait) event.
    Author:
    michal.polkorab
    • Constructor Detail

      • SleepEvent

        public SleepEvent​(long sleepTime)
        Constructor.
        Parameters:
        sleepTime - time of Thread.sleep(long) in milliseconds
    • 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