ParallelDeviceExecutor
public
class
ParallelDeviceExecutor
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.executor.ParallelDeviceExecutor<V> |
ExecutorService 的包裝函式,可平行執行函式。
摘要
公用建構函式 | |
|---|---|
ParallelDeviceExecutor(int poolSize)
|
|
公用方法 | |
|---|---|
List<Throwable>
|
getErrors()
所有工作執行作業的錯誤清單。 |
boolean
|
hasErrors()
是否發生一些錯誤。 |
List<V>
|
invokeAll(List<Callable<V>> callableTasks, long timeout, TimeUnit unit)
在逾時限制內叫用所有 |
公用建構函式
ParallelDeviceExecutor
public ParallelDeviceExecutor (int poolSize)
| 參數 | |
|---|---|
poolSize |
int |
公用方法
getErrors
public List<Throwable> getErrors ()
執行所有工作時發生的錯誤清單。
| 傳回 | |
|---|---|
List<Throwable> |
|
hasErrors
public boolean hasErrors ()
是否發生一些錯誤。
| 傳回 | |
|---|---|
boolean |
|
invokeAll
public List<V> invokeAll (List<Callable<V>> callableTasks,
long timeout,
TimeUnit unit)在逾時限制內叫用所有 Callable。
| 參數 | |
|---|---|
callableTasks |
List:工作清單。 |
timeout |
long:要套用的逾時時間,或零 (表示無限制)。 |
unit |
TimeUnit:逾時時間的單位。 |
| 傳回 | |
|---|---|
List<V> |
每個可呼叫工作的結果清單。 |