azure-docs-sdk-java/docs-ref-autogen/com.azure.communication.job...

65 строки
5.0 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.communication.jobrouter.models.QueueWeightedAllocation"
fullName: "com.azure.communication.jobrouter.models.QueueWeightedAllocation"
name: "QueueWeightedAllocation"
nameWithType: "QueueWeightedAllocation"
summary: "Contains the weight percentage and queue selectors to be applied if selected for weighted distributions."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **QueueWeightedAllocation**"
constructors:
- uid: "com.azure.communication.jobrouter.models.QueueWeightedAllocation.QueueWeightedAllocation(double,java.util.List<com.azure.communication.jobrouter.models.RouterQueueSelector>)"
fullName: "com.azure.communication.jobrouter.models.QueueWeightedAllocation.QueueWeightedAllocation(double weight, List<RouterQueueSelector> queueSelectors)"
name: "QueueWeightedAllocation(double weight, List<RouterQueueSelector> queueSelectors)"
nameWithType: "QueueWeightedAllocation.QueueWeightedAllocation(double weight, List<RouterQueueSelector> queueSelectors)"
summary: "Creates an instance of Queue<wbr>Weighted<wbr>Allocation class."
parameters:
- description: "the weight value to set."
name: "weight"
type: "<xref href=\"double?alt=double&text=double\" data-throw-if-not-resolved=\"False\" />"
- description: "the queueSelectors value to set."
name: "queueSelectors"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.communication.jobrouter.models.RouterQueueSelector?alt=com.azure.communication.jobrouter.models.RouterQueueSelector&text=RouterQueueSelector\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public QueueWeightedAllocation(double weight, List<RouterQueueSelector> queueSelectors)"
desc: "Creates an instance of QueueWeightedAllocation class."
methods:
- uid: "com.azure.communication.jobrouter.models.QueueWeightedAllocation.getQueueSelectors()"
fullName: "com.azure.communication.jobrouter.models.QueueWeightedAllocation.getQueueSelectors()"
name: "getQueueSelectors()"
nameWithType: "QueueWeightedAllocation.getQueueSelectors()"
summary: "Get the queue<wbr>Selectors property: A collection of queue selectors that will be applied if this allocation is selected."
syntax: "public List<RouterQueueSelector> getQueueSelectors()"
desc: "Get the queueSelectors property: A collection of queue selectors that will be applied if this allocation is selected."
returns:
description: "the queueSelectors value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.communication.jobrouter.models.RouterQueueSelector?alt=com.azure.communication.jobrouter.models.RouterQueueSelector&text=RouterQueueSelector\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.communication.jobrouter.models.QueueWeightedAllocation.getWeight()"
fullName: "com.azure.communication.jobrouter.models.QueueWeightedAllocation.getWeight()"
name: "getWeight()"
nameWithType: "QueueWeightedAllocation.getWeight()"
summary: "Get the weight property: The percentage of this weight, expressed as a fraction of 1."
syntax: "public double getWeight()"
desc: "Get the weight property: The percentage of this weight, expressed as a fraction of 1."
returns:
description: "the weight value."
type: "<xref href=\"double?alt=double&text=double\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Contains the weight percentage and queue selectors to be applied if selected for weighted distributions."
metadata: {}
package: "com.azure.communication.jobrouter.models"
artifact: com.azure:azure-communication-jobrouter:1.1.9