Class WorkerJob


  • public final class WorkerJob
    extends java.lang.Object
    A Job containing metadata from the WorkLoadManager.
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkerJob​(Job job, java.util.concurrent.CompletableFuture<ai.djl.modality.Output> future)
      Constructs a new WorkerJob.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<ai.djl.modality.Output> getFuture()
      Returns the future for the job.
      Job getJob()
      Returns the Job.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkerJob

        public WorkerJob​(Job job,
                         java.util.concurrent.CompletableFuture<ai.djl.modality.Output> future)
        Constructs a new WorkerJob.
        Parameters:
        job - the job to execute
        future - the future containing the job response
    • Method Detail

      • getJob

        public Job getJob()
        Returns the Job.
        Returns:
        the Job
      • getFuture

        public java.util.concurrent.CompletableFuture<ai.djl.modality.Output> getFuture()
        Returns the future for the job.
        Returns:
        the future for the job