Package io.gorules.zen.loader
Class ApiDecisionLoader
java.lang.Object
io.gorules.zen.loader.ApiDecisionLoader
- All Implemented Interfaces:
DecisionLoader
Decision loader that fetches decisions from an HTTP API.
Supports flexible header configuration, caching, and automatic retries.
-
Constructor Summary
ConstructorsConstructorDescriptionApiDecisionLoader(ApiLoaderConfig config) Create a new ApiDecisionLoader with the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<io.gorules.zen_engine.JsonBuffer> Load a decision by its key.
-
Constructor Details
-
ApiDecisionLoader
Create a new ApiDecisionLoader with the given configuration.- Parameters:
config- API loader configuration
-
-
Method Details
-
load
Description copied from interface:DecisionLoaderLoad a decision by its key.- Specified by:
loadin interfaceDecisionLoader- Parameters:
key- Decision key/filename- Returns:
- CompletableFuture with decision content as JsonBuffer
-