Package io.higson.runtime.reload
Class FixedReloadPolicy
java.lang.Object
io.higson.runtime.reload.FixedReloadPolicy
- All Implemented Interfaces:
ReloadPolicy
- Direct Known Subclasses:
NoneReloadPolicy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaneligibleForHotswap(String code, String region, String version) Specifies whether a given parameter should be hot-swapped in the prepared parameter cache.booleaneligibleForReload(String code, String region, String version) Specifies whether a given parameter should be eagerly reloaded after invalidation.
-
Constructor Details
-
FixedReloadPolicy
public FixedReloadPolicy(boolean reload, boolean hotswap)
-
-
Method Details
-
eligibleForReload
Description copied from interface:ReloadPolicySpecifies whether a given parameter should be eagerly reloaded after invalidation.- Specified by:
eligibleForReloadin interfaceReloadPolicy- Parameters:
code- parameter's coderegion- parameter's region code (if any)version- parameter's region version (if any)
-
eligibleForHotswap
Description copied from interface:ReloadPolicySpecifies whether a given parameter should be hot-swapped in the prepared parameter cache.- Specified by:
eligibleForHotswapin interfaceReloadPolicy- Parameters:
code- parameter's coderegion- parameter's region code (if any)version- parameter's region version (if any)
-