Priority

com.google.spanner.v1.spanner.RequestOptions.Priority
See thePriority companion object
sealed abstract class Priority(val value: Int) extends GeneratedEnum

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.

Attributes

Companion
object
Source
RequestOptions.scala
Graph
Supertypes
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object PRIORITY_HIGH.type
object PRIORITY_LOW.type
object PRIORITY_MEDIUM.type
object PRIORITY_UNSPECIFIED.type
trait Recognized
class Unrecognized
Show all

Members list

Type members

Types

Attributes

Source
RequestOptions.scala

Value members

Concrete methods

final def asRecognized: Option[Recognized]

Attributes

Source
RequestOptions.scala
def companion: GeneratedEnumCompanion[Priority]

Attributes

Source
RequestOptions.scala
def isPriorityHigh: Boolean

Attributes

Source
RequestOptions.scala
def isPriorityLow: Boolean

Attributes

Source
RequestOptions.scala
def isPriorityMedium: Boolean

Attributes

Source
RequestOptions.scala
def isPriorityUnspecified: Boolean

Attributes

Source
RequestOptions.scala

Inherited methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals
def index: Int

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def isUnrecognized: Boolean

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def javaValueDescriptor: EnumValueDescriptor

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def name: String

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
def productArity: Int

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product
def productElementName(n: Int): String

Attributes

Inherited from:
Product
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def productPrefix: String

Attributes

Inherited from:
Product
def scalaValueDescriptor: EnumValueDescriptor

Attributes

Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
GeneratedEnum -> Any
Inherited from:
GeneratedEnum
Source
GeneratedMessageCompanion.scala

Concrete fields

val value: Int

Attributes

Source
RequestOptions.scala