Class WorkerJob<I,​O>


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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<O> getFuture()
      Returns the future for the job.
      Job<I,​O> 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<I,​O> job,
                         java.util.concurrent.CompletableFuture<O> future)
        Constructs a new WorkerJob.
        Parameters:
        job - the job to execute
        future - the future containing the job response
    • Method Detail

      • getJob

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

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