Package io.temporal.common
Class Priority
- java.lang.Object
-
- io.temporal.common.Priority
-
public class Priority extends java.lang.ObjectPriority contains metadata that controls the relative ordering of task processing when tasks are backed up in a queue. The affected queues depend on the server version.Priority is attached to workflows and activities. By default, activities and child workflows inherit Priority from the workflow that created them, but may override fields when an activity is started or modified.
For all fields, the field not present or equal to zero/empty string means to inherit the value from the calling workflow, or if there is no calling workflow, then use the default value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPriority.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static PrioritygetDefaultInstance()java.lang.StringgetFairnessKey()floatgetFairnessWeight()intgetPriorityKey()inthashCode()static Priority.BuildernewBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
newBuilder
public static Priority.Builder newBuilder()
-
getDefaultInstance
public static Priority getDefaultInstance()
-
getPriorityKey
public int getPriorityKey()
- Returns:
- The priority key
-
getFairnessKey
public java.lang.String getFairnessKey()
- Returns:
- The fairness key
-
getFairnessWeight
public float getFairnessWeight()
- Returns:
- The fairness weight
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-