Class WorkDescriptor

  • All Implemented Interfaces:
    java.io.Serializable

    public class WorkDescriptor
    extends java.lang.Object
    implements java.io.Serializable
    Author:
    Baptiste Mesta.
    See Also:
    Serialized Form
    • Constructor Detail

      • WorkDescriptor

        public WorkDescriptor​(java.lang.String type)
    • Method Detail

      • getTenantId

        public java.lang.Long getTenantId()
      • setTenantId

        public WorkDescriptor setTenantId​(java.lang.Long tenantId)
      • getUuid

        public java.lang.String getUuid()
      • getType

        public java.lang.String getType()
      • getParameter

        public java.io.Serializable getParameter​(java.lang.String key)
      • getLong

        public java.lang.Long getLong​(java.lang.String key)
      • getInteger

        public java.lang.Integer getInteger​(java.lang.String key)
      • getBoolean

        public java.lang.Boolean getBoolean​(java.lang.String key)
      • getString

        public java.lang.String getString​(java.lang.String key)
      • create

        public static WorkDescriptor create​(java.lang.String type)
      • withParameter

        public WorkDescriptor withParameter​(java.lang.String key,
                                            java.io.Serializable value)
      • getExecutionThreshold

        public java.time.Instant getExecutionThreshold()
      • mustBeExecutedAfter

        public WorkDescriptor mustBeExecutedAfter​(java.time.Instant mustBeExecutedAfter)
      • getRetryCount

        public int getRetryCount()
      • incrementRetryCount

        public void incrementRetryCount()
      • getExecutionCount

        public int getExecutionCount()
      • incrementExecutionCount

        public void incrementExecutionCount()
      • setRegistrationDate

        public void setRegistrationDate​(java.time.Instant registrationDate)
      • getRegistrationDate

        public java.time.Instant getRegistrationDate()
      • abnormalExecutionDetected

        public WorkDescriptor abnormalExecutionDetected()
      • isAbnormalExecutionDetected

        public boolean isAbnormalExecutionDetected()
      • getDescription

        public java.lang.String getDescription()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object