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

io.temporal.api.enums.v1.TaskQueueKind Maven / Gradle / Ivy

There is a newer version: 1.27.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/enums/v1/task_queue.proto

package io.temporal.api.enums.v1;

/**
 * Protobuf enum {@code temporal.api.enums.v1.TaskQueueKind}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:TaskQueueKind.java.pb.meta")
public enum TaskQueueKind
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * TASK_QUEUE_KIND_UNSPECIFIED = 0;
   */
  TASK_QUEUE_KIND_UNSPECIFIED(0),
  /**
   * 
   * Tasks from a normal workflow task queue always include complete workflow history
   * The task queue specified by the user is always a normal task queue. There can be as many
   * workers as desired for a single normal task queue. All those workers may pick up tasks from
   * that queue.
   * 
* * TASK_QUEUE_KIND_NORMAL = 1; */ TASK_QUEUE_KIND_NORMAL(1), /** *
   * A sticky queue only includes new history since the last workflow task, and they are
   * per-worker.
   * Sticky queues are created dynamically by each worker during their start up. They only exist
   * for the lifetime of the worker process. Tasks in a sticky task queue are only available to
   * the worker that created the sticky queue.
   * Sticky queues are only for workflow tasks. There are no sticky task queues for activities.
   * 
* * TASK_QUEUE_KIND_STICKY = 2; */ TASK_QUEUE_KIND_STICKY(2), UNRECOGNIZED(-1), ; /** * TASK_QUEUE_KIND_UNSPECIFIED = 0; */ public static final int TASK_QUEUE_KIND_UNSPECIFIED_VALUE = 0; /** *
   * Tasks from a normal workflow task queue always include complete workflow history
   * The task queue specified by the user is always a normal task queue. There can be as many
   * workers as desired for a single normal task queue. All those workers may pick up tasks from
   * that queue.
   * 
* * TASK_QUEUE_KIND_NORMAL = 1; */ public static final int TASK_QUEUE_KIND_NORMAL_VALUE = 1; /** *
   * A sticky queue only includes new history since the last workflow task, and they are
   * per-worker.
   * Sticky queues are created dynamically by each worker during their start up. They only exist
   * for the lifetime of the worker process. Tasks in a sticky task queue are only available to
   * the worker that created the sticky queue.
   * Sticky queues are only for workflow tasks. There are no sticky task queues for activities.
   * 
* * TASK_QUEUE_KIND_STICKY = 2; */ public static final int TASK_QUEUE_KIND_STICKY_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TaskQueueKind valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static TaskQueueKind forNumber(int value) { switch (value) { case 0: return TASK_QUEUE_KIND_UNSPECIFIED; case 1: return TASK_QUEUE_KIND_NORMAL; case 2: return TASK_QUEUE_KIND_STICKY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TaskQueueKind> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TaskQueueKind findValueByNumber(int number) { return TaskQueueKind.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.temporal.api.enums.v1.TaskQueueProto.getDescriptor().getEnumTypes().get(0); } private static final TaskQueueKind[] VALUES = values(); public static TaskQueueKind valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private TaskQueueKind(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:temporal.api.enums.v1.TaskQueueKind) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy