@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Message message = (Message) o;
        return Objects.equals(payload, message.payload)
                && Objects.equals(id, message.id)
                && Objects.equals(priority, message.priority)
                && Objects.equals(receipt, message.receipt);
    }
Sets the message priority (between 0 and 99). Higher priority message is retrieved ahead of
lower priority ones.

@param priority the priority of message (between 0 and 99)
core/src/main/java/com/netflix/conductor/core/events/queue/Message.java