Class WorkerHandle


  • public class WorkerHandle
    extends java.lang.Object
    The worker handle is a control structure which allows control over the worker without exposing the thread object.
    Author:
    Thomas Morgner
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkerHandle​(Worker worker)
      Creates a new handle for the given worker.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finish()
      Finishes the worker.
      • Methods inherited from class java.lang.Object

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

      • WorkerHandle

        public WorkerHandle​(Worker worker)
        Creates a new handle for the given worker.
        Parameters:
        worker - the worker.
    • Method Detail

      • finish

        public void finish()
        Finishes the worker.