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.

System

The following are methods for AsyncInfo.

Get the current queueable stack depth for queueable transactions.

public static Integer getCurrentQueueableStackDepth()

Type: Integer

Get the maximum queueable stack depth for queueable transactions.

public static Integer getMaximumQueueableStackDepth()

Type: Integer

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

public static Integer getMinimumQueueableDelayInMinutes()

Type: Integer

Returns null if no delay is defined.

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

public static Boolean hasMaxStackDepth()

Type: Boolean