並行設備執行器
public class ParallelDeviceExecutor
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.executor.ParallelDeviceExecutor<V> |
ERROR(/ExecutorService)
的包裝器,用於並行執行函數。
概括
公共構造函數 | |
---|---|
ParallelDeviceExecutor (int poolSize) |
公共方法 | |
---|---|
getErrors () 執行所有任務的錯誤列表。 | |
boolean | hasErrors () 是否發生某些錯誤。 |
invokeAll ( callableTasks, long timeout, TimeUnit unit) invokeAll ( callableTasks, long timeout, TimeUnit unit) 使用超時限制調用所有 |
公共構造函數
並行設備執行器
public ParallelDeviceExecutor (int poolSize)
參數 | |
---|---|
poolSize | int |
公共方法
得到錯誤
publicgetErrors ()
執行所有任務的錯誤列表。
退貨 | |
---|---|
有錯誤
public boolean hasErrors ()
是否發生某些錯誤。
退貨 | |
---|---|
boolean |
全部調用
publicinvokeAll ( callableTasks, long timeout, TimeUnit unit)
使用超時限制調用所有ERROR(/Callable)
。
參數 | |
---|---|
callableTasks | |
timeout | long :應用超時,或零表示無限制。 |
unit | TimeUnit :超時的單位。 |
退貨 | |
---|---|
每個可調用任務的結果列表。 |