RestoreContext Class
- java.
lang. Object - microsoft.
servicefabric. data. RestoreContext
- microsoft.
public class RestoreContext
RestoreContext contains the restoreAsync(RestoreDescription restoreDescription) that can be used to restore the state of the replica from a backup.
Constructor Summary
Constructor | Description |
---|---|
RestoreContext(StateProviderReplica stateProviderReplica) |
Initializes a new instance of the RestoreContext structure. |
Method Summary
Modifier and Type | Method and Description |
---|---|
CompletableFuture<?> |
restoreAsync(RestoreDescription restoreDescription)
Restores a backup described by RestoreDescription. |
CompletableFuture<?> |
restoreAsync(RestoreDescription restoreDescription, Duration timeout, CancellationToken cancellationToken)
Restores a backup described by RestoreDescription. |
Constructor Details
RestoreContext
public RestoreContext(StateProviderReplica stateProviderReplica)
Initializes a new instance of the RestoreContext structure.
Parameters:
Method Details
restoreAsync
public CompletableFuture restoreAsync(RestoreDescription restoreDescription)
Restores a backup described by RestoreDescription.
Parameters:
Returns:
restoreAsync
public CompletableFuture restoreAsync(RestoreDescription restoreDescription, Duration timeout, CancellationToken cancellationToken)
Restores a backup described by RestoreDescription.
Parameters:
Returns:
Applies to
Azure SDK for Java