Freigeben über


PrimaryReplicator Interface

public interface PrimaryReplicator

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Method Summary

Modifier and Type Method and Description
CompletableFuture buildReplicaAsync(ReplicaInformation replicaInfo, CancellationToken cancellationToken)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

CompletableFuture<Boolean> onDataLossAsync(CancellationToken cancellationToken)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

void removeReplica(long replicaId)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Remarks: This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

void updateCatchUpReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration, ReplicaSetConfiguration previousConfiguration)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

void updateCurrentReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Remarks: This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

CompletableFuture waitForCatchUpQuorumAsync(ReplicaSetQuorumMode quorumMode, CancellationToken cancellationToken)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

For Internal Use Only.

Method Details

buildReplicaAsync

public CompletableFuture buildReplicaAsync(ReplicaInformation replicaInfo, CancellationToken cancellationToken)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Parameters:

replicaInfo - This supports the Service Fabric infrastructure and is not meant to be used directly from your code.
cancellationToken -

CancellationToken object to indicate the cancellation status of the operation.

Returns:

A future that represents the asynchronous operation. The future completes exceptionally with FabricException for fabric related failures.

onDataLossAsync

public CompletableFuture onDataLossAsync(CancellationToken cancellationToken)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Parameters:

cancellationToken -

CancellationToken object to indicate the cancellation status of the operation.

Returns:

A CompletableFuture that represents the asynchronous operation. The future completes exceptionally with FabricException for fabric related failures.

removeReplica

public void removeReplica(long replicaId)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Remarks: This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Parameters:

replicaId - This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

updateCatchUpReplicaSetConfiguration

public void updateCatchUpReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration, ReplicaSetConfiguration previousConfiguration)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Parameters:

currentConfiguration - For Internal Use Only.
previousConfiguration - For Internal Use Only.

updateCurrentReplicaSetConfiguration

public void updateCurrentReplicaSetConfiguration(ReplicaSetConfiguration currentConfiguration)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Remarks: This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

Parameters:

currentConfiguration - This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

waitForCatchUpQuorumAsync

public CompletableFuture waitForCatchUpQuorumAsync(ReplicaSetQuorumMode quorumMode, CancellationToken cancellationToken)

This supports the Service Fabric infrastructure and is not meant to be used directly from your code.

For Internal Use Only.

Parameters:

quorumMode - For Internal Use Only.
cancellationToken -

CancellationToken object to indicate the cancellation status of the operation.

Returns:

A future that represents asynchrnous completion. The future completes exceptionally with FabricException for fabric related failures.

Applies to