BackupDescription Class
- java.
lang. Object - microsoft.
servicefabric. data. BackupDescription
- microsoft.
public class BackupDescription
A BackupDescription contains all of the information necessary to backup a stateful service replica.
Constructor Summary
Constructor | Description |
---|---|
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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
BiFunction<Backup |
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. |
Backup |
getBackupOption()
The type of backup to perform. |
Constructor Details
BackupDescription
public BackupDescription(BackupOption backupOption, BiFunction
Initializes a new instance of the BackupDescription structure.
Parameters:
BackupDescription
public BackupDescription(BiFunction
Initializes a new instance of the BackupDescription structure.
Parameters:
Method Details
getBackupCallback
public BiFunction
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.
Returns:
Function
getBackupOption
Applies to
Azure SDK for Java