public final class CucumberRunnerThreadPool extends Object
| Modifier and Type | Field and Description |
|---|---|
private static CucumberRunnerThreadPool |
instance |
private int |
maxCapacity |
private static int |
MILLS_PER_SECOND |
private List<Thread> |
threadList |
| Modifier | Constructor and Description |
|---|---|
private |
CucumberRunnerThreadPool() |
| Modifier and Type | Method and Description |
|---|---|
static CucumberRunnerThreadPool |
get() |
int |
getMaxCapacity() |
List<Thread> |
getThreadList() |
boolean |
isAvailable() |
boolean |
isEmpty() |
boolean |
push(Thread thread) |
static void |
setCapacity(int value) |
void |
setMaxCapacity(int maxCapacityValue) |
void |
waitAvailable() |
void |
waitEmpty() |
private static final int MILLS_PER_SECOND
private static CucumberRunnerThreadPool instance
private int maxCapacity
public boolean isEmpty()
public boolean isAvailable()
public void waitAvailable()
throws InterruptedException
InterruptedExceptionpublic void waitEmpty()
throws InterruptedException
InterruptedExceptionpublic int getMaxCapacity()
public void setMaxCapacity(int maxCapacityValue)
public static CucumberRunnerThreadPool get()
public static void setCapacity(int value)
Copyright © 2013-2017. All Rights Reserved.