Which asynchronous feature should be used if a developer has been - ProProfs Discuss
Topics
Products
Follow Us:

Which asynchronous feature should be used if a developer has been asked to create code that will meet the following requirements?
Receives input of: Map Performs a potentially long-running callout to an outside web service Provides a way to confirm that the process executed successfully?



A. @future (callout=true)
B. Database. Allows Callouts interface
C. Schedulable interface
D. Queueable interface

This question is part of PD2
Asked by Pal, Last updated: Apr 05, 2020

+ Answer
Request

3 Answers

M. Krasinski

M. Krasinski, Content Writer, Columbus

Answered Jan 28, 2019

Asynchronous features are those where two or more features are not taking place at the same time, but they are taking place at different times. Often times, this may be used with codes and in Salesforce. The developer doesn’t want two or more events happening at the same time. One event may need to take place before another event.

The developer may want the code to cause the map to perform a potentially long-running callout to an outside web service. Then it provides a way to confirm that the process is executed successfully. The asynchronous feature that should be used in this situation is the queueable interface. This interface allows the execution of Apex jobs to take place so that they can be observed. This is done at different times.

 

devilzP

DevilzP

Answered Apr 05, 2018

Answer will beD. Queueable interface.

 

Pal

Pal

Answered Oct 29, 2017

Queueable interface
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.