Freigeben über


PartitionAccessStatus Enum

  • java.lang.Object
    • java.lang.Enum<PartitionAccessStatus>
      • system.fabric.PartitionAccessStatus

public enum PartitionAccessStatus

Enumerates the access status of the partition.

Remarks:

system.fabric.PartitionAccessStatus is used to check that a read or write operation is allowed. When service replicas handle a client request, they should verify that the system is in a state that allows processing. By checking the getReadStatus() or getwriteStatus() as appropriate, the replica can be notified of conditions that prevent correct operation. Note that write operations might still see an exception from the replicator for one of these conditions, because the condition might change between the getwriteStatus() check and the call to replicateAsync(OperationData operationData, SequenceNumber sequenceNumber, CancellationToken cancellationToken).

Fields

Granted

Indicates that the read or write operation access is granted and the operation is allowed.

Invalid

Indicates that the read or write operation access status is not valid. This value is not returned to the caller.

NotPrimary

Indicates that this client request was received by a replica that is not a Primary replica. The read or write operation cannot be performed at this replica. The client should attempt to use the naming service to identify the correct primary replica.

NoWriteQuorum

Indicates that no write quorum is available and, therefore, no write operation can be accepted. The client should retry the operation at this replica.

ReconfigurationPending

Indicates that the client should try again later, because a reconfiguration is in progress. After the reconfiguration is completed, a new status is returned that gives further instructions. The client should retry the operation at this replica

Methods

getValue()

public int getValue()

Gets the system.fabric.PartitionAccessStatus value.

Returns

int
int value representing system.fabric.PartitionAccessStatus

Applies to