Class Command

    • Method Detail

      • getId

        public String getId()
      • getGenerationTime

        public Instant getGenerationTime()
      • getName

        public String getName()
      • getOrigin

        public String getOrigin()
      • getSequenceNumber

        public int getSequenceNumber()
      • getUsername

        public String getUsername()
        Username of the issuer
      • getQueue

        public String getQueue()
        The assigned command queue
      • getSource

        public String getSource()
        String representation of the command
      • getBinary

        public byte[] getBinary()
        Binary representation of the command
      • getAttribute

        public <T> T getAttribute​(String key)
      • isComplete

        public boolean isComplete()
        Returns whether this command is complete. A command can be complete, yet still failed.
      • isSuccess

        public boolean isSuccess()
        Returns true if this command has completed successfully
      • isFailure

        public boolean isFailure()
        Returns true if this command failed
      • getError

        public String getError()
        Error message in case this command failed
      • getComment

        public String getComment()
      • getAttributes

        public Map<String,​Object> getAttributes()
        Returns all attributes of this commands.
      • merge

        public void merge​(Command other)
      • getQueuedAcknowledgment

        public Acknowledgment getQueuedAcknowledgment()
      • getReleasedAcknowledgment

        public Acknowledgment getReleasedAcknowledgment()
      • getSentAcknowledgment

        public Acknowledgment getSentAcknowledgment()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object