Class FileBasedFallbackResolver
java.lang.Object
org.frontcache.resilience.fr.FileBasedFallbackResolver
- All Implemented Interfaces:
FallbackResolver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFallback(String fallbackSource, String urlStr) A copy, not the live entries: these go out over the management API, and the returned objects are plainFallbackConfigEntryrather than theFallbackConfigEntryImplused internally so the compiledPatterndoes not have to serialize.voidinit(FcHttpClient client)
-
Field Details
-
FALLBACK_HTTP_STATUS
public static final int FALLBACK_HTTP_STATUS- See Also:
-
FALLBACK_CACHE_CONTROL
- See Also:
-
-
Constructor Details
-
FileBasedFallbackResolver
public FileBasedFallbackResolver()
-
-
Method Details
-
init
- Specified by:
initin interfaceFallbackResolver
-
getFallbackEntries
A copy, not the live entries: these go out over the management API, and the returned objects are plainFallbackConfigEntryrather than theFallbackConfigEntryImplused internally so the compiledPatterndoes not have to serialize. LinkedHashSet because the order is the matching order - first match wins - which is what makes the console's list readable as the rule sequence it actually is.- Specified by:
getFallbackEntriesin interfaceFallbackResolver- Returns:
- the configured fallback entries, for display in the console. Order matters: it is the order they are matched in, first match wins.
-
getFallback
- Specified by:
getFallbackin interfaceFallbackResolver
-