BackupDescription 类

定义

A BackupDescription contains all of the information necessary to backup a stateful service replica.

public class BackupDescription
继承
java.lang.Object
BackupDescription

构造函数

BackupDescription(BackupOption backupOption, BiFunction<BackupInfo, CancellationToken, CompletableFuture<Boolean>> backupCallback)

Initializes a new instance of the BackupDescription structure.

BackupDescription(BiFunction<BackupInfo, CancellationToken, CompletableFuture<Boolean>> backupCallback)

Initializes a new instance of the BackupDescription structure.

方法

getBackupCallback()

Gets the callback to be called when the backup folder has been created locally and is ready to be moved out of the node.

Remarks:Boolean returned by the backupCallback indicate whether the service was able to successfully move the backup folder to an external location. If false is returned, BackupAsync throws InvalidOperationException with the relevant message indicating backupCallback returned false. Also, backup will be marked as unsuccessful.

getBackupOption()

The type of backup to perform.

适用于