Added in API level 36
  
  
  
  
  
   
  
  
  
  
  
   
  
  
  
  
  
   
  
  
  
  
  
  
  
  
Future.State
  public
  static
  final
  
  enum
  Future.State
  
  
  
  
    extends Enum<Future.State>
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | java.lang.Enum<java.util.concurrent.Future.State> | |
| ↳ | java.util.concurrent.Future.State | |
Represents the computation state.
Summary
| Enum values | |
|---|---|
| Future.State | CANCELLEDThe task was cancelled. | 
| Future.State | FAILEDThe task completed with an exception. | 
| Future.State | RUNNINGThe task has not completed. | 
| Future.State | SUCCESSThe task completed with a result. | 
| Public methods | |
|---|---|
| 
        
        
        static
        
        
        Future.State | 
      valueOf(String name)
       | 
| 
        
        
        static
        final
        
        State[] | 
      values()
       | 
| Inherited methods | |
|---|---|
Enum values
CANCELLED
      
    Added in API level 36
  
      
  
    
public static final Future.State CANCELLED
The task was cancelled.
See also:
FAILED
      
    Added in API level 36
  
      
  
    
public static final Future.State FAILED
The task completed with an exception.
See also:
SUCCESS
      
    Added in API level 36
  
      
  
    
public static final Future.State SUCCESS
The task completed with a result.
See also:
Public methods
valueOf
public static Future.State valueOf (String name)
| Parameters | |
|---|---|
| name | String | 
| Returns | |
|---|---|
| Future.State | |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[]]
    
  
            
          
        
        