Class AbstractWorkItem

  • All Implemented Interfaces:
    Runnable
    Direct Known Subclasses:
    RequestWorkItem

    public abstract class AbstractWorkItem
    extends Object
    implements Runnable
    Represents a task that performs work that may take more than one processing pass to complete. During processing the WorkItem may receive events asynchronously through the moreWork method.
    • Constructor Detail

      • AbstractWorkItem

        public AbstractWorkItem()
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
      • isProcessing

        public boolean isProcessing()
      • moreWork

        public void moreWork()
      • moreWork

        protected void moreWork​(boolean ignoreDone)
      • process

        protected abstract void process()
      • pauseProcessing

        protected void pauseProcessing()
      • resumeProcessing

        protected abstract void resumeProcessing()
      • isDoneProcessing

        protected abstract boolean isDoneProcessing()