Send feedback
Enum RequestOptions.Priority
Stay organized with collections
Save and categorize content based on your preferences.
Version 6.14.1 keyboard_arrow_down
public enum RequestOptions . Priority extends Enum<RequestOptions . Priority> implements ProtocolMessageEnum
The relative priority for requests. Note that priority is not applicable
for 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
Fields
Name Description PRIORITY_HIGH This specifies that the request is high priority.
PRIORITY_HIGH = 3;
PRIORITY_HIGH_VALUE This specifies that the request is high priority.
PRIORITY_HIGH = 3;
PRIORITY_LOW This specifies that the request is low priority.
PRIORITY_LOW = 1;
PRIORITY_LOW_VALUE This specifies that the request is low priority.
PRIORITY_LOW = 1;
PRIORITY_MEDIUM This specifies that the request is medium priority.
PRIORITY_MEDIUM = 2;
PRIORITY_MEDIUM_VALUE This specifies that the request is medium priority.
PRIORITY_MEDIUM = 2;
PRIORITY_UNSPECIFIED PRIORITY_UNSPECIFIED
is equivalent to PRIORITY_HIGH
.
PRIORITY_UNSPECIFIED = 0;
PRIORITY_UNSPECIFIED_VALUE PRIORITY_UNSPECIFIED
is equivalent to PRIORITY_HIGH
.
PRIORITY_UNSPECIFIED = 0;
UNRECOGNIZED
Methods
Name Description forNumber(int value) getDescriptor() getDescriptorForType() getNumber() getValueDescriptor() internalGetValueMap() valueOf(Descriptors.EnumValueDescriptor desc) valueOf(int value) (deprecated) Use #forNumber(int) instead.
valueOf(String name) values()
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-19 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-19 UTC."]]