Class CanceledInfo


  • public class CanceledInfo
    extends Object
    Contains information about canceled build
    • Constructor Detail

      • CanceledInfo

        public CanceledInfo​(long userId,
                            @Nullable
                            String comment)
        Constructor for builds cancelled by a user
        Parameters:
        userId - id of the user who cancelled the build
        comment - comment
      • CanceledInfo

        public CanceledInfo​(@Nullable
                            String comment)
        Constructor for builds cancelled by the system
        Parameters:
        comment - comment
    • Method Detail

      • getComment

        @Nullable
        public String getComment()
        Returns cancellation comment
        Returns:
        cancellation comment
      • getUserId

        @Nullable
        public Long getUserId()
        Returns id of the user who cancelled the build or null if build was not cancelled by a user
        Returns:
        user id who canceled the build
      • isCanceledByUser

        public boolean isCanceledByUser()
        Returns true if build was cancelled by a user
        Returns:
        true if the build was canceled by user
      • getCreatedAt

        public long getCreatedAt()
        Returns:
        the timestamp when this object was created
      • isOutdated

        public boolean isOutdated()
        Returns:
        true if this object was created (build was canceled) more than 5 minutes ago
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object