Pull 태스크 만들기
bookmark_borderbookmark
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Pull 큐를 만들었으면 태스크를 만들어 큐에 추가할 수 있습니다.
먼저 queue.xml
에서 정의된 큐 이름이 필요합니다.
그런 다음 빌더와 TaskOptions.Method.PULL
을 사용하여 태스크를 추가합니다.
다음 예시에서는 pull-queue
라는 pull 큐에 태스크를 넣습니다.
먼저, queue.xml
에 정의된 큐 이름을 사용하여 큐를 가져옵니다.
그런 다음 TaskOptions.Method.PULL
과 함께 큐의 add()
메서드를 사용하여 pull-queue
라는 pull 큐에 태스크를 배치합니다.
다음 단계
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-06(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-06(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."]]],[]]