Posts

Showing posts from September, 2017

Queueable Apex in Salesforce

e Apex in Salesforce The class which implements the  Queueable  interface are basically called as  Queueable  apex class. This interface enables you to add jobs to the queue and monitor them, which is an enhanced way of running your asynchronous Apex code compared to using future methods. The interface has only one method execute which takes the parameter of  QueableContext . For Apex processes that run for a long time, such as extensive database operations or external Web service callouts, you can run them asynchronously by implementing the  Queueable  interface and adding a job to the Apex job queue. In this way, your asynchronous Apex job runs in the background in its own thread and doesn’t delay the execution of your main Apex logic. Each queued job runs when system resources become available. A benefit of using the  Queueable  interface methods is that some governor limits are higher than for synchronous Apex, such as heap siz...