Contents
Class CrashRecoveryConfig
java.lang.Object
com.hypixel.hytale.server.core.config.CrashRecoveryConfig
Configuration for how the server recovers when a world thread crashes.
Unset fields fall back to computed defaults. The resolution of the crash mode itself depends on whether the crashed world is the default world.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<CrashRecoveryConfig> static final WorldCrashRecoveryDefault action after the reload attempts run out.static final intDefault number of reload attempts before the fallback runs.static final intDefault delay in seconds before a reload attempt.static final intUpper bound on the configured reload attempt count.static final intUpper bound in seconds on the configured reload delay. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_MAX_ATTEMPTS
public static final int DEFAULT_MAX_ATTEMPTSDefault number of reload attempts before the fallback runs.- See Also:
-
DEFAULT_RETRY_DELAY_SECONDS
public static final int DEFAULT_RETRY_DELAY_SECONDSDefault delay in seconds before a reload attempt.- See Also:
-
DEFAULT_FALLBACK
Default action after the reload attempts run out. -
MAX_ATTEMPTS_LIMIT
public static final int MAX_ATTEMPTS_LIMITUpper bound on the configured reload attempt count.- See Also:
-
RETRY_DELAY_SECONDS_LIMIT
public static final int RETRY_DELAY_SECONDS_LIMITUpper bound in seconds on the configured reload delay.- See Also:
-
CODEC
-
-
Constructor Details
-
CrashRecoveryConfig
public CrashRecoveryConfig()
-
-
Method Details
-
getMode
- Returns:
- the configured crash mode, or
nullif unset.
-
getMaxAttempts
public int getMaxAttempts()- Returns:
- the configured reload attempt count, or
DEFAULT_MAX_ATTEMPTSif unset.
-
getRetryDelaySeconds
public int getRetryDelaySeconds()- Returns:
- the configured reload delay in seconds, or
DEFAULT_RETRY_DELAY_SECONDSif unset.
-
getFallback
- Returns:
- the configured fallback action, or
DEFAULT_FALLBACKif unset.
-