All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.internal.thread.ExecutorAdapter Maven / Gradle / Ivy

There is a newer version: 7.10.1
Show newest version
package org.testng.internal.thread;

import java.util.List;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * An implementation for IExecutor based on ThreadPoolExecutor
 *
 * @author  threads = m_threadFactory.getThreads();
    int threadCount = threads.size();
    StackTraceElement[][] result = new StackTraceElement[threadCount][];
    for (int i = 0; i < result.length; i++) {
      result[i] = threads.get(i).getStackTrace();
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy