public static enum RequestOptions.Priority extends Enum<RequestOptions.Priority> implements ProtocolMessageEnum
The relative priority for requests. Note that priority is not applicable for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction]. The priority acts as a hint to the Cloud Spanner scheduler and does not guarantee priority or order of execution. For example: * Some parts of a write operation always execute at `PRIORITY_HIGH`, regardless of the specified priority. This may cause you to see an increase in high priority workload even when executing a low priority request. This can also potentially cause a priority inversion where a lower priority request will be fulfilled ahead of a higher priority request. * If a transaction contains multiple operations with different priorities, Cloud Spanner does not guarantee to process the higher priority operations first. There may be other constraints to satisfy, such as order of operations.Protobuf enum
google.spanner.v1.RequestOptions.Priority
Enum Constant and Description |
---|
PRIORITY_HIGH
This specifies that the request is high priority.
|
PRIORITY_LOW
This specifies that the request is low priority.
|
PRIORITY_MEDIUM
This specifies that the request is medium priority.
|
PRIORITY_UNSPECIFIED
`PRIORITY_UNSPECIFIED` is equivalent to `PRIORITY_HIGH`.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
PRIORITY_HIGH_VALUE
This specifies that the request is high priority.
|
static int |
PRIORITY_LOW_VALUE
This specifies that the request is low priority.
|
static int |
PRIORITY_MEDIUM_VALUE
This specifies that the request is medium priority.
|
static int |
PRIORITY_UNSPECIFIED_VALUE
`PRIORITY_UNSPECIFIED` is equivalent to `PRIORITY_HIGH`.
|
Modifier and Type | Method and Description |
---|---|
static RequestOptions.Priority |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<RequestOptions.Priority> |
internalGetValueMap() |
static RequestOptions.Priority |
valueOf(Descriptors.EnumValueDescriptor desc) |
static RequestOptions.Priority |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static RequestOptions.Priority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequestOptions.Priority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestOptions.Priority PRIORITY_UNSPECIFIED
`PRIORITY_UNSPECIFIED` is equivalent to `PRIORITY_HIGH`.
PRIORITY_UNSPECIFIED = 0;
public static final RequestOptions.Priority PRIORITY_LOW
This specifies that the request is low priority.
PRIORITY_LOW = 1;
public static final RequestOptions.Priority PRIORITY_MEDIUM
This specifies that the request is medium priority.
PRIORITY_MEDIUM = 2;
public static final RequestOptions.Priority PRIORITY_HIGH
This specifies that the request is high priority.
PRIORITY_HIGH = 3;
public static final RequestOptions.Priority UNRECOGNIZED
public static final int PRIORITY_UNSPECIFIED_VALUE
`PRIORITY_UNSPECIFIED` is equivalent to `PRIORITY_HIGH`.
PRIORITY_UNSPECIFIED = 0;
public static final int PRIORITY_LOW_VALUE
This specifies that the request is low priority.
PRIORITY_LOW = 1;
public static final int PRIORITY_MEDIUM_VALUE
This specifies that the request is medium priority.
PRIORITY_MEDIUM = 2;
public static final int PRIORITY_HIGH_VALUE
This specifies that the request is high priority.
PRIORITY_HIGH = 3;
public static RequestOptions.Priority[] values()
for (RequestOptions.Priority c : RequestOptions.Priority.values()) System.out.println(c);
public static RequestOptions.Priority valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static RequestOptions.Priority valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static RequestOptions.Priority forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<RequestOptions.Priority> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static RequestOptions.Priority valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.