All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.uber.cadence.WorkflowExecutionCloseStatus Maven / Gradle / Ivy

There is a newer version: 3.12.5
Show newest version
/**
 * Autogenerated by Thrift Compiler (0.9.3)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package com.uber.cadence;


import java.util.Map;
import java.util.HashMap;
import org.apache.thrift.TEnum;

public enum WorkflowExecutionCloseStatus implements org.apache.thrift.TEnum {
  COMPLETED(0),
  FAILED(1),
  CANCELED(2),
  TERMINATED(3),
  CONTINUED_AS_NEW(4),
  TIMED_OUT(5);

  private final int value;

  private WorkflowExecutionCloseStatus(int value) {
    this.value = value;
  }

  /**
   * Get the integer value of this enum value, as defined in the Thrift IDL.
   */
  public int getValue() {
    return value;
  }

  /**
   * Find a the enum type by its integer value, as defined in the Thrift IDL.
   * @return null if the value is not found.
   */
  public static WorkflowExecutionCloseStatus findByValue(int value) { 
    switch (value) {
      case 0:
        return COMPLETED;
      case 1:
        return FAILED;
      case 2:
        return CANCELED;
      case 3:
        return TERMINATED;
      case 4:
        return CONTINUED_AS_NEW;
      case 5:
        return TIMED_OUT;
      default:
        return null;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy