Queueable Apex
Queueable Apex is the simplicity of Future Apex and power of Batch Apex . To write a Queueable apex class you have to implement Queueable Interface . It provides a class structure that doesn't need start and finish method like Batch Apex. you can call apex class by using a simple method called System.enqueue() . This method returns a job Id by which you can monitor it. Queueable Syntax-- public class ClassName implements Queueable{ public void execute(QueueableContext QC){ //your awesome logic } } Example- For example, we create a Queueable Apex class that insert contacts for Account Apex Class-- public class AddPrimaryContact implements Queueable{ private Contact ct; private String st; ...