前边我们分别讲了Batch Apex,Future方法,他们都是异步进程,都可以在自己的线程运行,除了上述两个方法,还有一种异步进程处理方式,就是QueueableApex,它是通过使用可排队接口控制异步 Apex进程。使用此接口,可以将作业添加到队列并对其进行监视。与使用Future方法相比,使用该接口是运行异步Apex代码的增强方式。长时间运行的...
when you submit your job by invoking the system.enqueuejob method, the method returns the id of the new job. this id corresponds to the id of the asyncapexjob record. use this id to identify and monitor your job, either through the salesforce ui (apex jobs page), or programmatically ...
del registro AsyncApexJob. Puede usar este Id. para identificar su trabajo y monitorear el progreso, ya sea mediante la interfaz de usuario de Salesforce en la página Trabajos de Apex o mediante programación con una consulta al registro desde AsyncApexJob. Encadenamiento de trabajos: ...
长时间运行的Apex进程,比如大量的数据库操作或外部web服务调用,可以通过实现Queueable接口并向Apex作业队列添加作业来异步运行。通过这种方式,异步Apex作业将在后台自己的线程中运行,而不会延迟执行. Queueable 类似于future方法,因为它们都在队列中等待执行,但它们为您提供了这些额外的好处。 •Getting an ID for you...
Queueable Apex例: public with sharing class AsyncExecutionExample implements Queueable{ public void...555-1212'); insert accItem; system.debu...
Salesforce Developer Website
when you submit your job by invoking the system.enqueuejob method, the method returns the id of the new job. this id corresponds to the id of the asyncapexjob record. use this id to identify your job and monitor its progress, either through the salesforce user interface in the apex ...
Salesforce Developer Website
我们使用 Cookies使您与我们网站的交互更有意义,并为您定制内容。 我们根据隐私声明处理从Cookies收集的信息。 这些信息可能被传输到中国境外的服务器或第三方信息控制者进行处理。 要更改您的 Cookies设置和偏好,请单击“Cookie同意管理”按钮。 拒绝所有 接受所有Cookie同意管理 ...