Class WorkerJob<I,O>

java.lang.Object
ai.djl.serving.wlm.util.WorkerJob<I,O>

public final class WorkerJob<I,O> extends Object
A Job containing metadata from the WorkLoadManager.
  • Constructor Details

    • WorkerJob

      public WorkerJob(Job<I,O> job, CompletableFuture<O> future)
      Constructs a new WorkerJob.
      Parameters:
      job - the job to execute
      future - the future containing the job response
  • Method Details

    • getJob

      public Job<I,O> getJob()
      Returns the Job.
      Returns:
      the Job
    • getFuture

      public CompletableFuture<O> getFuture()
      Returns the future for the job.
      Returns:
      the future for the job