Interface SerialWorkDispatcher.WorkHandler

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Boolean doWork(W item) Handles processing on item
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • doWork

         abstract Boolean doWork(W item)

        Handles processing on item

        Parameters:
        item - the work item which is dispatched for processing.
        Returns:

        Boolean A boolean variable denoting whether the item has completed processing. If WorkHandler.doWork returns false after processing an item, the SerialWorkDispatcher stops processing the work queue without removing the item. It restarts when resume is called or a new item is enqueued. If WorkHandler.doWork returns true after processing an item, it removes it from work queue and continues processing other queued items.