link start!
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public interface IAtomicInteger extends Serializable {
|
||||
int get();
|
||||
|
||||
int incrementAndGet();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
public interface ICountDown {
|
||||
void await() throws InterruptedException;
|
||||
|
||||
boolean await(long j) throws InterruptedException;
|
||||
|
||||
void countDown();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
public interface IExecutor {
|
||||
boolean awaitTermination(long j);
|
||||
|
||||
StackTraceElement[][] getStackTraces();
|
||||
|
||||
void shutdown();
|
||||
|
||||
void stopNow();
|
||||
|
||||
IFutureResult submitRunnable(Runnable runnable);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
public interface IFutureResult {
|
||||
Object get() throws InterruptedException, ThreadExecutionException;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
public interface IPooledExecutor {
|
||||
void awaitTermination(long j) throws InterruptedException;
|
||||
|
||||
void execute(Runnable runnable);
|
||||
|
||||
boolean isTerminated();
|
||||
|
||||
void shutdown();
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.internal.thread;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IThreadFactory {
|
||||
Object getThreadFactory();
|
||||
|
||||
List<Thread> getThreads();
|
||||
|
||||
Thread newThread(Runnable runnable);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package org.testng.internal.thread.graph;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IThreadWorkerFactory<T> {
|
||||
List<IWorker<T>> createWorkers(List<T> list);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.testng.internal.thread.graph;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IWorker<T> extends Runnable, Comparable<IWorker<T>> {
|
||||
int getPriority();
|
||||
|
||||
List<T> getTasks();
|
||||
|
||||
long getTimeOut();
|
||||
}
|
||||
Reference in New Issue
Block a user