Class StripedExecutor.Stripe

    • Field Detail

      • idx

        protected final int idx
      • thread

        protected Thread thread
        Thread executing the loop.
    • Constructor Detail

      • Stripe

        public Stripe​(String igniteInstanceName,
                      String poolName,
                      int idx,
                      IgniteLogger log,
                      IgniteInClosure<Throwable> errHnd,
                      GridWorkerListener gridWorkerLsnr,
                      HistogramMetricImpl execTime)
        Parameters:
        igniteInstanceName - Ignite instance name.
        poolName - Pool name.
        idx - Stripe index.
        log - Logger.
        errHnd - Exception handler.
        gridWorkerLsnr - listener to link with stripe worker.
        execTime - Task execution time consumer.
    • Method Detail

      • body

        public void body()
        The implementation should provide the execution body for this runnable.
        Specified by:
        body in class GridWorker
      • queue

        public abstract Queue<Runnable> queue()
        Returns:
        Stripe queue.
      • index

        public int index()
        Returns:
        Stripe index.