다음을 통해 공유


QueueWeightedAllocation Class

Definition

Contains the weight percentage and queue selectors to be applied if selected for weighted distributions.

public class QueueWeightedAllocation
public class QueueWeightedAllocation : System.ClientModel.Primitives.IJsonModel<Azure.Communication.JobRouter.QueueWeightedAllocation>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.JobRouter.QueueWeightedAllocation>
type QueueWeightedAllocation = class
type QueueWeightedAllocation = class
    interface IJsonModel<QueueWeightedAllocation>
    interface IPersistableModel<QueueWeightedAllocation>
Public Class QueueWeightedAllocation
Public Class QueueWeightedAllocation
Implements IJsonModel(Of QueueWeightedAllocation), IPersistableModel(Of QueueWeightedAllocation)
Inheritance
QueueWeightedAllocation
Implements

Constructors

QueueWeightedAllocation(Double, IEnumerable<RouterQueueSelector>)

Initializes a new instance of QueueWeightedAllocation.

Properties

QueueSelectors

A collection of queue selectors that will be applied if this allocation is selected.

Weight

The percentage of this weight, expressed as a fraction of 1.

Explicit Interface Implementations

IJsonModel<QueueWeightedAllocation>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<QueueWeightedAllocation>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<QueueWeightedAllocation>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<QueueWeightedAllocation>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<QueueWeightedAllocation>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to