27 মার্চ, 2025 থেকে, আমরা AOSP তৈরি করতে এবং অবদান রাখতে aosp-main
এর পরিবর্তে android-latest-release
ব্যবহার করার পরামর্শ দিচ্ছি। আরও তথ্যের জন্য, AOSP-তে পরিবর্তনগুলি দেখুন।
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ParallelDeviceExecutor
public class ParallelDeviceExecutor
extends Object
java.lang.অবজেক্ট |
↳ | com.android.tradefed.util.executor.ParallelDeviceExecutor<V> |
সমান্তরালভাবে একটি ফাংশন চালানোর জন্য ERROR(/ExecutorService)
এর মোড়ক।
সারাংশ
পাবলিক পদ্ধতি |
---|
| getErrors () সমস্ত কার্য সম্পাদন থেকে ত্রুটির তালিকা। |
boolean | hasErrors () কিছু ত্রুটি ঘটেছে কি না। |
| invokeAll ( callableTasks, long timeout, TimeUnit unit) invokeAll ( callableTasks, long timeout, TimeUnit unit) টাইমআউট সীমা সহ সমস্ত ERROR(/Callable) আহ্বান করুন। |
পাবলিক কনস্ট্রাক্টর
ParallelDeviceExecutor
public ParallelDeviceExecutor (int poolSize)
পাবলিক পদ্ধতি
ত্রুটি পান
public getErrors ()
সমস্ত কার্য সম্পাদন থেকে ত্রুটির তালিকা।
ত্রুটি আছে
public boolean hasErrors ()
কিছু ত্রুটি ঘটেছে কি না।
সকলকে আহ্বান করুন
public invokeAll ( callableTasks,
long timeout,
TimeUnit unit)
টাইমআউট সীমা সহ সমস্ত ERROR(/Callable)
আহ্বান করুন।
পরামিতি |
---|
callableTasks | : কাজের তালিকা। |
timeout | long : প্রয়োগ করার সময়সীমা, বা সীমাহীনের জন্য শূন্য। |
unit | TimeUnit : টাইমআউটের একক। |
রিটার্নস |
---|
| প্রতিটি কলযোগ্য টাস্কের ফলাফলের তালিকা। |
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-29 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-29 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 |"]]