in Technology by
What is the use of “@future” annotation?

1 Answer

0 votes
by

Future annotations are used to identify and execute methods asynchronously. If the method is annotated with “@future”, then it will be executed only when Salesforce has the available resources.

For example, you can use it while making an asynchronous web service callout to an external service. Whereas without using the annotation, the web service callout is made from the same thread that is executing the Apex code, and no additional processing will occur until that callout is complete (synchronous processing).

Related questions

0 votes
    What is Future annotation(@future) in Salesforce?...
asked Jun 26, 2021 in Technology by JackTerrance
0 votes
    Annotation used for Rest Controller? 1. @SpringBootApplication 2. @RestController 3. @Controller 4. All of the Above...
asked Jul 8, 2021 in Technology by JackTerrance
0 votes
    Explain annotation in EJB to do the database entity relationships/mappings....
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Which types of java classes can be mapped using @Lob annotation?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @Lob annotation?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @Embeddable annotation?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @javax.ejb.PostActivate annotation....
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @javax.ejb.ActivationConfigProperty annotation....
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @javax.ejb.Remote annotation....
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @javax.ejb.Local annotation...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @javax.ejb.EJB annotation....
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @javax.ejb.MessageDrivenBean annotation....
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @javax.ejb.Stateful annotation....
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Explain @javax.ejb.Stateless annotation....
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    @RequestMapping annotation is used to map a HTTP request method (GET or POST) to a specific class or method in the ... which will handle the respective request. A. True B. False...
asked Nov 8, 2022 in Education by JackTerrance
...