Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

AsyncInfo Class

Provides methods to get the current stack depth, maximum stack depth, and the minimum queueable delay for Queueable transactions, and to determine if maximum stack depth is set.

Namespace

System

AsyncInfo Methods

The following are methods for AsyncInfo.

getCurrentQueueableStackDepth()

Get the current queueable stack depth for queueable transactions.

Signature

public static Integer getCurrentQueueableStackDepth()

Return Value

Type: Integer

getMaximumQueueableStackDepth()

Get the maximum queueable stack depth for queueable transactions.

Signature

public static Integer getMaximumQueueableStackDepth()

Return Value

Type: Integer

getMinimumQueueableDelayInMinutes()

Get the minimum queueable delay for queueable transactions (in minutes).

Signature

public static Integer getMinimumQueueableDelayInMinutes()

Return Value

Type: Integer

Returns null if no delay is defined.

hasMaxStackDepth()

Determine if maximum stack depth is set for your queueable requests.

Signature

public static Boolean hasMaxStackDepth()

Return Value

Type: Boolean