SCHED_PerformBatchedCallouts
Class · Group: Web Services
global inherited sharing class SCHED_PerformBatchedCallouts implements SchedulableImplements: Schedulable
The SCHED_PerformBatchedCallouts class is a scheduled job responsible for processing batched API calls that are queued for outbound processing. This class retrieves a list of queued API calls, updates their status to indicate readiness for processing, and commits the updates to the database. This enables efficient handling and scheduling of multiple API requests.
Since: 1.0
Example:
System.schedule('Process Batched Callouts', '0 0 0 * * ?', new SCHED_PerformBatchedCallouts());Methods
| Method | Description |
|---|---|
| global void execute(SchedulableContext context) | Executes the scheduled job, retrieving a list of API calls that are batched and ready for outbound processing, updating their status to indicate they are queued, and committing the updated records to the database. |
Method Details
execute
global void execute(SchedulableContext context)Executes the scheduled job, retrieving a list of API calls that are batched and ready for outbound processing, updating their status to indicate they are queued, and committing the updated records to the database. This method allows for controlled and consistent processing of API callouts on a scheduled basis.
Parameters:
context(SchedulableContext) - relevant context
Since: 1.0
Example:
// Schedule the job to run every day at midnight to process batched API calls.
System.schedule('Process Batched API Calls', '0 0 0 * * ?', new SCHED_PerformBatchedCallouts());