গেট অপারেশন
অ্যাসিঙ্ক্রোনাস API পদ্ধতি প্রক্রিয়াকরণ সম্পূর্ণ হওয়ার আগে একটি ফলাফল প্রদান করে। এটির operationId
ব্যবহার করে একটি অ্যাসিঙ্ক্রোনাস অপারেশনের স্থিতি পুনরুদ্ধার করতে getOperation
ব্যবহার করুন।
পদ্ধতি স্বাক্ষর
public Operation getOperation( GetOperationRequest request) throws CommonException;
GetOperationRequest
সম্পত্তির নাম | মান | প্রয়োজন | বর্ণনা |
---|
operationId | string | হ্যাঁ | অপারেশন আইডি। |
ত্রুটি আচরণ
যদি একটি ত্রুটি ঘটে, লাইব্রেরি নিম্নলিখিত ত্রুটি কোডগুলির মধ্যে একটি সম্বলিত একটি CommonException
নিক্ষেপ করে:
ত্রুটি কোড |
---|
AUTHORIZATION_FAIL (যদি রিসেলার অপারেশনের মালিক না হয়) |
INTERNAL_SERVER_ERROR |
INVALID_OPERATION_ID |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-14 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-14 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Asynchronous API methods use `getOperation` to check the status of an operation."],["The `getOperation` method requires the `operationId` as a string in the `GetOperationRequest`."],["`CommonException` is thrown if an error occurs during the operation."],["Possible error codes include `AUTHORIZATION_FAIL`, `INTERNAL_SERVER_ERROR`, and `INVALID_OPERATION_ID`."]]],["Asynchronous operations are tracked using `getOperation`, which requires an `operationId` to check their status. The `getOperation` method, part of the API, takes a `GetOperationRequest` and can throw a `CommonException`. Possible errors include `AUTHORIZATION_FAIL` (if the caller lacks ownership), `INTERNAL_SERVER_ERROR`, and `INVALID_OPERATION_ID`. The method returns before the operation is completed, allowing users to periodically retrieve updates via `getOperation`.\n"]]