Interface JobBatchRecordValue

    • 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
      • getJobKeys

        List<Long> getJobKeys()
        Returns:
        list of the keys from the jobs assigned to this batch
      • isTruncated

        boolean isTruncated()
        Returns:
        the broker has more JobRecords that couldn't fit in this batch