Package io.zeebe.protocol.record.value
Interface JobBatchRecordValue
-
- All Superinterfaces:
JsonSerializable,RecordValue
public interface JobBatchRecordValue extends RecordValue
Represents a job batch related event or command.See
JobBatchIntentfor intents.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Long>getJobKeys()List<JobRecordValue>getJobs()intgetMaxJobsToActivate()longgetTimeout()StringgetType()StringgetWorker()booleanisTruncated()-
Methods inherited from interface io.zeebe.protocol.record.JsonSerializable
toJson
-
-
-
-
Method Detail
-
getType
String getType()
- Returns:
- the type of the job
-
getWorker
String getWorker()
- Returns:
- the assigned worker to complete the job
-
getTimeout
long getTimeout()
- Returns:
- the timeout (time span in milliseconds) for which a job is exclusively assigned to this worker. If the timeout is exceeded, it can happen that the job is handed to another worker and the work is performed twice.
-
getMaxJobsToActivate
int getMaxJobsToActivate()
- Returns:
- the number of jobs to handle
-
getJobs
List<JobRecordValue> getJobs()
- Returns:
- the jobs assigned to this batch
-
isTruncated
boolean isTruncated()
- Returns:
- the broker has more JobRecords that couldn't fit in this batch
-
-