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 Summary
ConstructorsConstructorDescriptionActiveJobContext(String name, io.camunda.zeebe.client.api.response.ActivatedJob job) Creates an instance of aActiveJobContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondeadline()longlongfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()io.camunda.zeebe.client.api.response.ActivatedJobjob()Returns the value of thejobrecord component.longjobKey()jobName()jobType()name()Returns the value of thenamerecord component.longintlonginttenantId()toString()Returns a string representation of this record class.
-
Constructor Details
-
ActiveJobContext
Creates an instance of aActiveJobContextrecord class.- Parameters:
name- the value for thenamerecord componentjob- the value for thejobrecord component
-
-
Method Details
-
jobKey
public long jobKey()- Specified by:
jobKeyin interfaceJobContext
-
jobName
- Specified by:
jobNamein interfaceJobContext
-
jobType
- Specified by:
jobTypein interfaceJobContext
-
jobWorker
- Specified by:
jobWorkerin interfaceJobContext
-
tenantId
- Specified by:
tenantIdin interfaceJobContext
-
processInstanceKey
public long processInstanceKey()- Specified by:
processInstanceKeyin interfaceJobContext
-
processId
- Specified by:
processIdin interfaceJobContext
-
processDefinitionVersion
public int processDefinitionVersion()- Specified by:
processDefinitionVersionin interfaceJobContext
-
processDefinitionKey
public long processDefinitionKey()- Specified by:
processDefinitionKeyin interfaceJobContext
-
elementId
- Specified by:
elementIdin interfaceJobContext
-
elementInstanceKey
public long elementInstanceKey()- Specified by:
elementInstanceKeyin interfaceJobContext
-
headers
- Specified by:
headersin interfaceJobContext
-
retryCount
public int retryCount()- Specified by:
retryCountin interfaceJobContext
-
deadline
- Specified by:
deadlinein interfaceJobContext
-
deadlineAsMillis
public long deadlineAsMillis()- Specified by:
deadlineAsMillisin interfaceJobContext
-
variablesAsString
- Specified by:
variablesAsStringin interfaceJobContext
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
job
public io.camunda.zeebe.client.api.response.ActivatedJob job()Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord component
-