27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main
yerine android-latest-release
kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
ParallelDeviceExecutor
public
class
ParallelDeviceExecutor
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.executor.ParallelDeviceExecutor<V>
|
Bir işlevi paralel olarak yürütmek için ERROR(/ExecutorService)
sarmalayıcısı.
Özet
Herkese açık yöntemler |
|
getErrors()
Tüm görevlerin yürütülmesiyle ilgili hataların listesi.
|
boolean
|
hasErrors()
Hata olup olmadığı.
|
|
invokeAll( callableTasks, long timeout, TimeUnit unit)
Zaman aşımı sınırıyla tüm ERROR(/Callable) öğelerini çağırın.
|
Herkese açık kurucular
ParallelDeviceExecutor
public ParallelDeviceExecutor (int poolSize)
Parametreler |
poolSize |
int |
Herkese açık yöntemler
getErrors
public getErrors ()
Tüm görevlerin yürütülmesiyle ilgili hataların listesi.
hasErrors
public boolean hasErrors ()
Hata olup olmadığı.
invokeAll
public invokeAll ( callableTasks,
long timeout,
TimeUnit unit)
Zaman aşımı sınırıyla tüm ERROR(/Callable)
öğelerini çağırın.
Parametreler |
callableTasks |
: Görev listesi. |
timeout |
long : Uygulanacak zaman aşımı veya sınırsız için sıfır. |
unit |
TimeUnit : Zaman aşımı birimi. |
İlerlemeler |
|
Her çağrılabilir görev için sonuçların listesi. |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# ParallelDeviceExecutor\n======================\n\n\n`\npublic\n\n\nclass\nParallelDeviceExecutor\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.executor.ParallelDeviceExecutor\\\u003cV\\\u003e |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nWrapper of [ERROR(/ExecutorService)](../../../../../../../) to execute a function in parallel.\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[ParallelDeviceExecutor](../../../../../../../reference/tradefed/com/android/tradefed/util/executor/ParallelDeviceExecutor.html#ParallelDeviceExecutor(int))`(int poolSize) ` |\n\n| ### Public methods ||\n|------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` ` | ` `[getErrors](../../../../../../../reference/tradefed/com/android/tradefed/util/executor/ParallelDeviceExecutor.html#getErrors())`() ` The list of errors from the execution of all tasks. |\n| ` boolean` | ` `[hasErrors](../../../../../../../reference/tradefed/com/android/tradefed/util/executor/ParallelDeviceExecutor.html#hasErrors())`() ` Whether or not some errors occurred or not. |\n| ` ` | ` `[invokeAll](../../../../../../../reference/tradefed/com/android/tradefed/util/executor/ParallelDeviceExecutor.html#invokeAll(\u003cany\u003e,%20long,%20TimeUnit))`(` callableTasks, long timeout, TimeUnit unit) Invoke all the [ERROR(/Callable)](../../../../../../../) with the timeout limit. |\n\nPublic constructors\n-------------------\n\n### ParallelDeviceExecutor\n\n```\npublic ParallelDeviceExecutor (int poolSize)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|--------------|\n| `poolSize` | `int` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getErrors\n\n```\npublic getErrors ()\n```\n\nThe list of errors from the execution of all tasks.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---|--------|\n| | \u003cbr /\u003e |\n\n### hasErrors\n\n```\npublic boolean hasErrors ()\n```\n\nWhether or not some errors occurred or not.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### invokeAll\n\n```\npublic invokeAll ( callableTasks, \n long timeout, \n TimeUnit unit)\n```\n\nInvoke all the [ERROR(/Callable)](../../../../../../../) with the timeout limit.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------------|-------------------------------------------------------------|\n| `callableTasks` | : The List of tasks. \u003cbr /\u003e |\n| `timeout` | `long`: The timeout to apply, or zero for unlimited. \u003cbr /\u003e |\n| `unit` | `TimeUnit`: The unit of the timeout. \u003cbr /\u003e |\n\n| Returns ||\n|---|----------------------------------------------------|\n| | The list of results for each callable task. \u003cbr /\u003e |"]]