RestoreContext.restoreAsync 方法

定义

重载

restoreAsync(RestoreDescription restoreDescription)

Restores a backup described by RestoreDescription.

restoreAsync(RestoreDescription restoreDescription, Duration timeout, CancellationToken cancellationToken)

Restores a backup described by RestoreDescription.

restoreAsync(RestoreDescription restoreDescription)

Restores a backup described by RestoreDescription.

public CompletableFuture<?> restoreAsync(RestoreDescription restoreDescription)

参数

restoreDescription
RestoreDescription

Description for the restore request.

返回

CompletableFuture<?>

Task that represents the asynchronous restore operation.

restoreAsync(RestoreDescription restoreDescription, Duration timeout, CancellationToken cancellationToken)

Restores a backup described by RestoreDescription.

public CompletableFuture<?> restoreAsync(RestoreDescription restoreDescription, Duration timeout, CancellationToken cancellationToken)

参数

restoreDescription
RestoreDescription

Description for the restore request.

timeout
Duration

The timeout for this operation.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

返回

CompletableFuture<?>

Task that represents the asynchronous restore operation.

适用于