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