Record Class ActiveJobContext

java.lang.Object
java.lang.Record
ru.tinkoff.kora.camunda.zeebe.worker.ActiveJobContext
All Implemented Interfaces:
JobContext

public record ActiveJobContext(String name, io.camunda.zeebe.client.api.response.ActivatedJob job) extends Record implements JobContext
  • Constructor Details

    • ActiveJobContext

      public ActiveJobContext(String name, io.camunda.zeebe.client.api.response.ActivatedJob job)
      Creates an instance of a ActiveJobContext record class.
      Parameters:
      name - the value for the name record component
      job - the value for the job record component
  • Method Details

    • jobKey

      public long jobKey()
      Specified by:
      jobKey in interface JobContext
    • jobName

      public String jobName()
      Specified by:
      jobName in interface JobContext
    • jobType

      public String jobType()
      Specified by:
      jobType in interface JobContext
    • jobWorker

      public String jobWorker()
      Specified by:
      jobWorker in interface JobContext
    • tenantId

      public String tenantId()
      Specified by:
      tenantId in interface JobContext
    • processInstanceKey

      public long processInstanceKey()
      Specified by:
      processInstanceKey in interface JobContext
    • processId

      public String processId()
      Specified by:
      processId in interface JobContext
    • processDefinitionVersion

      public int processDefinitionVersion()
      Specified by:
      processDefinitionVersion in interface JobContext
    • processDefinitionKey

      public long processDefinitionKey()
      Specified by:
      processDefinitionKey in interface JobContext
    • elementId

      public String elementId()
      Specified by:
      elementId in interface JobContext
    • elementInstanceKey

      public long elementInstanceKey()
      Specified by:
      elementInstanceKey in interface JobContext
    • headers

      public Map<String,String> headers()
      Specified by:
      headers in interface JobContext
    • retryCount

      public int retryCount()
      Specified by:
      retryCount in interface JobContext
    • deadline

      public Instant deadline()
      Specified by:
      deadline in interface JobContext
    • deadlineAsMillis

      public long deadlineAsMillis()
      Specified by:
      deadlineAsMillis in interface JobContext
    • variablesAsString

      public String variablesAsString()
      Specified by:
      variablesAsString in interface JobContext
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • job

      public io.camunda.zeebe.client.api.response.ActivatedJob job()
      Returns the value of the job record component.
      Returns:
      the value of the job record component