StateProviderReplica.restoreAsync Method

定义

重载

restoreAsync(String backupFolderPath)

Restore a backup taken.

Remarks:A safe restore will be performed, meaning the restore will only be completed if the data to restore is ahead of state of the current replica.

restoreAsync(String backupFolderPath, RestorePolicy restorePolicy, Duration timeout, CancellationToken cancellationToken)

Restore a backup taken

restoreAsync(String backupFolderPath)

Restore a backup taken.

Remarks:A safe restore will be performed, meaning the restore will only be completed if the data to restore is ahead of state of the current replica.

public CompletableFuture<?> restoreAsync(String backupFolderPath)

参数

backupFolderPath
String

The directory where the replica is to be restored from. This parameter cannot be null, empty or contain just whitespace. UNC paths may also be provided.

返回

CompletableFuture<?>

Task that represents the asynchronous restore operation.

restoreAsync(String backupFolderPath, RestorePolicy restorePolicy, Duration timeout, CancellationToken cancellationToken)

Restore a backup taken

public CompletableFuture<?> restoreAsync(String backupFolderPath, RestorePolicy restorePolicy, Duration timeout, CancellationToken cancellationToken)

参数

backupFolderPath
String

The directory where the replica is to be restored from. This parameter cannot be null, empty or contain just whitespace. UNC paths may also be provided.

restorePolicy
RestorePolicy

The restore policy.

timeout
Duration

The timeout for this operation.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

返回

CompletableFuture<?>

Task that represents the asynchronous restore operation.

适用于