public static final class RecoveryConfig.Builder extends Object
RecoveryConfig instances.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
RecoveryConfig.Builder |
autoRecoveryCooldownMinutes(int minutes)
Sets the cooldown period between recovery attempts.
|
RecoveryConfig |
build()
Builds the RecoveryConfig instance.
|
RecoveryConfig.Builder |
initFailureThreshold(int threshold)
Sets the threshold for consecutive initialization failures.
|
RecoveryConfig.Builder |
lookupErrorThreshold(int threshold)
Sets the threshold for consecutive lookup errors.
|
RecoveryConfig.Builder |
maxAutoRecoveryAttempts(int attempts)
Sets the maximum number of automatic recovery attempts.
|
RecoveryConfig.Builder |
notifyOnTransientErrors(boolean notify)
Sets whether to notify listeners on transient errors.
|
RecoveryConfig.Builder |
recoverOnCorruption(boolean recover)
Sets whether to trigger recovery on database corruption.
|
RecoveryConfig.Builder |
recoverOnDownloadFailure(boolean recover)
Sets whether to trigger recovery after download failures.
|
RecoveryConfig.Builder |
recoveryAction(RecoveryConfig.RecoveryAction action)
Sets the action to take when recovery is triggered.
|
public RecoveryConfig.Builder recoveryAction(RecoveryConfig.RecoveryAction action)
action - The recovery action (default: NOTIFY_ONLY)public RecoveryConfig.Builder initFailureThreshold(int threshold)
threshold - Number of failures before recovery (default: 2, minimum: 1)public RecoveryConfig.Builder lookupErrorThreshold(int threshold)
threshold - Number of errors before recovery (default: 10, minimum: 1)public RecoveryConfig.Builder recoverOnDownloadFailure(boolean recover)
recover - true to enable (default: false)public RecoveryConfig.Builder recoverOnCorruption(boolean recover)
recover - true to enable (default: true)public RecoveryConfig.Builder maxAutoRecoveryAttempts(int attempts)
attempts - Maximum attempts (default: 3, minimum: 1)public RecoveryConfig.Builder autoRecoveryCooldownMinutes(int minutes)
minutes - Cooldown in minutes (default: 60, minimum: 1)public RecoveryConfig.Builder notifyOnTransientErrors(boolean notify)
notify - true to enable (default: false)public RecoveryConfig build()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.