ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ParallelDeviceExecutor
public
class
ParallelDeviceExecutor
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.executor.ParallelDeviceExecutor<V>
|
Wrapper ของ ERROR(/ExecutorService)
เพื่อเรียกใช้ฟังก์ชันพร้อมกัน
สรุป
เมธอดสาธารณะ |
|
getErrors()
รายการข้อผิดพลาดจากการดำเนินการของงานทั้งหมด
|
boolean
|
hasErrors()
เกิดข้อผิดพลาดบางอย่างหรือไม่
|
|
invokeAll( callableTasks, long timeout, TimeUnit unit)
เรียกใช้ ERROR(/Callable) ทั้งหมดที่มีขีดจํากัดการหมดเวลา
|
ตัวสร้างแบบสาธารณะ
ParallelDeviceExecutor
public ParallelDeviceExecutor (int poolSize)
เมธอดสาธารณะ
getErrors
public getErrors ()
รายการข้อผิดพลาดจากการดำเนินการของงานทั้งหมด
hasErrors
public boolean hasErrors ()
เกิดข้อผิดพลาดบางอย่างหรือไม่
invokeAll
public invokeAll ( callableTasks,
long timeout,
TimeUnit unit)
เรียกใช้ ERROR(/Callable)
ทั้งหมดที่มีขีดจํากัดการหมดเวลา
พารามิเตอร์ |
callableTasks |
: รายการงาน |
timeout |
long : ระยะหมดเวลาที่จะใช้ หรือ 0 สำหรับไม่มีขีดจำกัด |
unit |
TimeUnit : หน่วยของเวลาหมดอายุ |
คิกรีเทิร์น |
|
รายการผลลัพธ์สำหรับแต่ละงานที่เรียกใช้ได้ |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 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 |"]]