Interface JobWorker

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
JobWorkerImpl

@Deprecated public interface JobWorker extends AutoCloseable
Deprecated.
since 8.8 for removal in 8.9, replaced by JobWorker
Represents an active job worker that performs jobs of a certain type. While a registration is open, the client continuously receives jobs from the broker and hands them to a registered JobHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Closes this registration and stops receiving new work items.
    boolean
    Deprecated.
     
    boolean
    Deprecated.
     
  • Method Details

    • isOpen

      boolean isOpen()
      Deprecated.
      Returns:
      true if this registration is currently active and work items are being received for it
    • isClosed

      boolean isClosed()
      Deprecated.
      Returns:
      true if this registration is not open and is not in the process of opening or closing
    • close

      void close()
      Deprecated.
      Closes this registration and stops receiving new work items. Blocks until all previously received items have been handed to the worker.
      Specified by:
      close in interface AutoCloseable