平行設備執行器
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 :超時的單位。 |
退貨 | |
---|---|
每個可呼叫任務的結果清單。 |