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