Enum CommandQueueEvent.Type

    • Enum Constant Detail

      • COMMAND_ADDED

        public static final CommandQueueEvent.Type COMMAND_ADDED
        A command was added to the queue. Events of this type are generated by the execute() method for each passed in Command object.
      • COMMAND_EXECUTING

        public static final CommandQueueEvent.Type COMMAND_EXECUTING
        A command is about to be executed. This event is triggered if a worker thread fetches a command object and starts with its execution.
      • COMMAND_EXECUTED

        public static final CommandQueueEvent.Type COMMAND_EXECUTED
        Execution of a command is finished. This event is triggered after a worker thread has executed a command.
      • QUEUE_BUSY

        public static final CommandQueueEvent.Type QUEUE_BUSY
        A command was added to an empty queue. This event is triggered if the queue has been idle and then the processing of commands starts. After all pending commands have been executed an event of type QUEUE_IDLE is triggered. As long as the queue is in the BUSY state, the isPending() method returns true.
      • QUEUE_IDLE

        public static final CommandQueueEvent.Type QUEUE_IDLE
        The last command contained in the queue was processed. This is the opposite event of QUEUE_BUSY. It indicates that all pending commands have been processed, and the queue is now empty.
    • Method Detail

      • values

        public static CommandQueueEvent.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CommandQueueEvent.Type c : CommandQueueEvent.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CommandQueueEvent.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null