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

org.testng.internal.thread.graph.IWorker Maven / Gradle / Ivy

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

import java.util.List;

/**
 * A runnable object that is used by {@code GraphThreadPoolExecutor} to execute
 * tasks
 */
public interface IWorker extends Runnable, Comparable> {

  /**
   * @return list of tasks this worker is working on.
   */
  List getTasks();

  /**
   * @return the maximum time allowed for the worker to complete the task.
   */
  long getTimeOut();

  /**
   * @return the priority of this task.
   */
  int getPriority();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy