Interface ParallelMultiDataSetIterator

    • Method Detail

      • attachThread

        void attachThread​(int producer)
        This method sets consumer affinity to specific producer PLEASE NOTE: this method is optional, and it'll change only nextFor()/hasNextFor() mechanics
      • hasNextFor

        boolean hasNextFor()
        Returns true, if attached producer has something in queue, false otherwise
        Returns:
      • hasNextFor

        boolean hasNextFor​(int consumer)
        Returns true, if attached producer has something in queue, false otherwise
        Parameters:
        consumer -
        Returns:
      • nextFor

        MultiDataSet nextFor​(int consumer)
        Returns next DataSet for given consumer
        Parameters:
        consumer -
        Returns:
      • nextFor

        MultiDataSet nextFor()
        Returns next DataSet for attached consumer
        Returns: