26
SepGrab Deal : Flat 20% off on live classes + 2 free self-paced courses! - SCHEDULE CALL
A Queueable job that adds the job to the queue and each job runs when system resources become available.
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 Queueable 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. Queueable interface methods help in increasing some governor limits are higher than for synchronous Apex, such as heap size limits.
Queueable apex jobs and future methods both are queued for execution, but Queueable jobs provide you with these additional benefits.
Read: Salesforce Platform Developer 1 Certification: How to Pass it?
Enroll for an online Salesforce Training and become a Salesforce expert in just a matter of 6 weeks.
Sample Code:
public class QueueableExample implements Queueable {
public void execute(QueueableContext context) {
Account a = new Account(Name='Daniel',Phone='(+12) 354-45345');
insert a;
}
}
Debug
ID jobID = System.enqueueJob(new QueueableExample());
system.debug(jobId);
Read: Salesforce Admin Certification Exam Guide-How to pass it?
Now learn Salesforce at your own pace with our Salesforce Self-learning program.
Learn Salesforce in the Easiest Way
Read: Top 12 Salesforce APP Builder Interview Questions and Answers 2018
Did you understand what Queueable Apex in Salesforce is about? Go to Janbask Training to learn more about Salesforce and its aspects. Also, sign up for a Salesforce course to have an in-depth understanding of it.
A dynamic, highly professional, and a global online training course provider committed to propelling the next generation of technology learners with a whole new way of training experience.
AWS
DevOps
Data Science
Hadoop
Salesforce
QA
Business Analyst
MS SQL Server
Python
Artificial Intelligence
Machine Learning
Tableau
Search Posts
Related Posts
Top 125 Visual Salesforce Interview Questions and Answers For Freshers and Experienced
993.5k
What is Inbound Email Service in Salesforce?
648.8k
What is Standard Controller in Salesforce?
154.8k
Top 10 Salesforce Influencers to Follow, Who are Pros!
2.9k
Salesforce Database Explained - Quick Tips, Uses & Benefits
669.6k
Receive Latest Materials and Offers on Salesforce Course
Interviews