TargetReplicaSelector Enum

Definition

This enumeration specifies how the target replica or instance should be chosen when creating a communication channel for a particular partition.

public enum TargetReplicaSelector
type TargetReplicaSelector = 
Public Enum TargetReplicaSelector
Inheritance
TargetReplicaSelector

Fields

Name Value Description
Default 0

This specifies the default option for this enum. If the service partition is stateful, this indicates that communication channel should be established to the primary replica. If the service partition is stateless, this indicates that the communication channel should be established to a random stateless instance.

PrimaryReplica 0

This specifies the default value of this enum for stateful service partitions. This indicates that the communication channel should be established to the primary replica.

RandomInstance 0

This specifies the default value of this enum for stateless service partitions. This indicates that the communication channel should be established to a random stateless instance.

RandomReplica 1

For stateful service partitions, this indicates that communication channel can be established for to any replica chosen in random - (i.e) primary or secondary. This is not valid for stateless service partitions

RandomSecondaryReplica 2

For stateful service partitions, this indicates that communication channel can be established for to any secondary replica chosen in random. This is not valid for stateless service partitions

Applies to