Class DBMultiplierReader.RetrievingThread

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    DBMultiplierReader

    protected class DBMultiplierReader.RetrievingThread
    extends Thread

    This class is charged to retrieve batches of document IDs which will be returned for processing afterwards.

    The class manages itself the FetchIdsProactively parameter which can be given to the reader. When set to false, no ID batches are fetched in advance but are fetched exactly on demand in DBReader.getNextArtifactData().

    This class is only in use when reading from a subset table.

    Author:
    hellrich/faessler
    • Constructor Detail

      • RetrievingThread

        public RetrievingThread()
    • Method Detail

      • isConsumed

        public boolean isConsumed()
      • setConsumed

        public void setConsumed​(boolean consumed)
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • getDocumentIds

        public List<Object[]> getDocumentIds()