pull タスクの作成
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
pull キューを作成したら、タスクを作成してキューに追加できます。
まず、queue.xml
で定義されているキューの名前が必要になります。次に、ビルダーと TaskOptions.Method.PULL
を使用してタスクを追加します。次の例では、pull-queue
という名前の pull キューにタスクを配置します。
まずは、queue.xml
に定義されているキュー名を使用してキューを取得します。
次に、TaskOptions.Method.PULL
を指定してキューの add()
メソッドを使用し、pull-queue
という名前の pull キューにタスクを配置します。
次のステップ
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-03-12 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-03-12 UTC。"],[[["Pull queues allow you to add tasks for later processing, and can be created using the specified API which is compatible with first-generation runtimes and can be utilized when upgrading to corresponding second-generation runtimes."],["Tasks are added to a pull queue using the `TaskOptions.Method.PULL` method, after obtaining the queue name from the `queue.xml` file."],["The `QueueFactory.getQueue()` method is used to access the queue by its name, as defined in the `queue.xml`."],["The `queue.add()` method, combined with `TaskOptions.Builder.withMethod(TaskOptions.Method.PULL)`, is used to place tasks into a pull queue."]]],[]]