TargetReplicaSelector Enum

  • java.lang.Object
    • java.lang.Enum<TargetReplicaSelector>
      • microsoft.servicefabric.services.communication.client.TargetReplicaSelector

public enum TargetReplicaSelector

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

Fields

DEFAULT

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.

PRIMARY_REPLICA

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.

RANDOM_INSTANCE

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.

RANDOM_REPLICA

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

RANDOM_SECONDARY_REPLICA

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