---
schema_version: "1"
id: 07e0d06ed062718122bab705dd1e72c4dcb1b4b2167382ea801c3daf366986c3
title: AsyncInfo Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_System_AsyncInfo.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_AsyncInfo.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 558de9313ac63ac3fe800aef0ff80a40d82073b70aae42e9e5e83cbae1a55e95
description: 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.Get the current queueable stack depth for queueable transactions.Get the maximum queueable stack depth for queueable transactions.Get the minimum queueable delay for queueable transactions (in minutes).Determine if maximum stack depth is set for your queueable requests.
---
# 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_System.htm "The System namespace provides classes and methods for core Apex functionality.")

- **[AsyncInfo Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_AsyncInfo.htm#apex_System_AsyncInfo_methods)**

## AsyncInfo Methods

The following are methods for AsyncInfo.

- **[getCurrentQueueableStackDepth()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_AsyncInfo.htm#apex_System_AsyncInfo_getCurrentQueueableStackDepth)**  
    Get the current queueable stack depth for queueable transactions.
- **[getMaximumQueueableStackDepth()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_AsyncInfo.htm#apex_System_AsyncInfo_getMaximumQueueableStackDepth)**  
    Get the maximum queueable stack depth for queueable transactions.
- **[getMinimumQueueableDelayInMinutes()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_AsyncInfo.htm#apex_System_AsyncInfo_getMinimumQueueableDelayInMinutes)**  
    Get the minimum queueable delay for queueable transactions (in minutes).
- **[hasMaxStackDepth()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_System_AsyncInfo.htm#apex_System_AsyncInfo_hasMaxStackDepth)**  
    Determine if maximum stack depth is set for your queueable requests.

### getCurrentQueueableStackDepth()

Get the current queueable stack depth for queueable transactions.

#### Signature

public static Integer getCurrentQueueableStackDepth()

#### Return Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### getMaximumQueueableStackDepth()

Get the maximum queueable stack depth for queueable transactions.

#### Signature

public static Integer getMaximumQueueableStackDepth()

#### Return Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### getMinimumQueueableDelayInMinutes()

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

#### Signature

public static Integer getMinimumQueueableDelayInMinutes()

#### Return Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")