Index

A B C D E F G H I L M R S T V W Z 
All Classes and Interfaces|All Packages|Serialized Form

A

addDecision(String, byte[]) - Method in class io.gorules.zen.loader.MemoryDecisionLoader
Add a decision to memory.
addDecision(String, JsonBuffer) - Method in class io.gorules.zen.loader.MemoryDecisionLoader
Add a decision to memory.
addDecision(String, String) - Method in class io.gorules.zen.loader.MemoryDecisionLoader
Add a decision to memory.
ApiDecisionLoader - Class in io.gorules.zen.loader
Decision loader that fetches decisions from an HTTP API.
ApiDecisionLoader(ApiLoaderConfig) - Constructor for class io.gorules.zen.loader.ApiDecisionLoader
Create a new ApiDecisionLoader with the given configuration.
ApiLoaderConfig - Class in io.gorules.zen.loader
Configuration for ApiDecisionLoader.
ApiLoaderConfig.Builder - Class in io.gorules.zen.loader
Builder for ApiLoaderConfig with flexible header configuration.
ApiLoaderConfig.CacheEvictionPolicy - Enum Class in io.gorules.zen.loader
Cache eviction policy for API loader.
ApiLoaderException - Exception Class in io.gorules.zen.loader
Exception thrown when ApiDecisionLoader fails to load a decision from the API.
ApiLoaderException(String) - Constructor for exception class io.gorules.zen.loader.ApiLoaderException
Create exception with message.
ApiLoaderException(String, Throwable) - Constructor for exception class io.gorules.zen.loader.ApiLoaderException
Create exception with message and cause.

B

basicAuth(String, String) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Add Basic authentication header.
bearerToken(String) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Add Bearer token authorization header.
build() - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Build the ApiLoaderConfig.
build() - Method in class io.gorules.zen.ZenEngineBuilder
Build the ZenEngineWrapper instance.
builder(String) - Static method in class io.gorules.zen.loader.ApiLoaderConfig
Create a new builder with the given base URL.

C

cacheEvictionPolicy(ApiLoaderConfig.CacheEvictionPolicy) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Set cache eviction policy.
cacheMaxMemoryMb(long) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Set maximum cache memory in MB.
cacheMaxSize(long) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Set maximum cache size (number of entries).
cacheTtl(Duration) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Set cache TTL (time to live).
caching(boolean) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Enable or disable caching of loaded decisions.
ClasspathDecisionLoader - Class in io.gorules.zen.loader
Loads decision models from classpath resources.
ClasspathDecisionLoader(String) - Constructor for class io.gorules.zen.loader.ClasspathDecisionLoader
Create classpath loader.
clear() - Method in class io.gorules.zen.loader.MemoryDecisionLoader
Clear all decisions from memory.
close() - Method in class io.gorules.zen.ZenEngineWrapper
 
contains(String) - Method in class io.gorules.zen.loader.MemoryDecisionLoader
Check if a decision exists in memory.
create() - Static method in class io.gorules.zen.ZenEngineBuilder
Create a new builder instance.
createDecision(JsonNode) - Method in class io.gorules.zen.ZenEngineWrapper
Create a decision from JSON content.
createDecision(String) - Method in class io.gorules.zen.ZenEngineWrapper
Create a decision from JSON string.

D

DecisionLoader - Interface in io.gorules.zen.loader
Interface for loading decision models.

E

evaluate(String, JsonNode) - Method in class io.gorules.zen.ZenEngineWrapper
Evaluate a decision with the given key and input context.
evaluate(String, JsonNode, ZenEvaluateOptions) - Method in class io.gorules.zen.ZenEngineWrapper
Evaluate a decision with custom options.
evaluateWithTrace(String, JsonNode, ZenEvaluateOptions) - Method in class io.gorules.zen.ZenEngineWrapper
Evaluate with full response including trace and performance data.

F

FilesystemDecisionLoader - Class in io.gorules.zen.loader
Loads decision models from the filesystem.
FilesystemDecisionLoader(String) - Constructor for class io.gorules.zen.loader.FilesystemDecisionLoader
Create filesystem loader.

G

getAllHeaders() - Method in class io.gorules.zen.loader.ApiLoaderConfig
Get all headers (static + dynamic) for a request.
getDecision(String) - Method in class io.gorules.zen.ZenEngineWrapper
Get a decision by key (for reuse/caching).
getHeaders() - Method in interface io.gorules.zen.loader.HeaderProvider
Provides headers for the HTTP request.

H

header(String, String) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Add a single HTTP header.
headerProvider(HeaderProvider) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Set a provider for dynamic headers that are computed per request.
HeaderProvider - Interface in io.gorules.zen.loader
Functional interface for providing dynamic HTTP headers.
headers(Map<String, String>) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Add multiple headers at once from a Map.

I

io.gorules.zen - package io.gorules.zen
 
io.gorules.zen.loader - package io.gorules.zen.loader
 

L

LFU - Enum constant in enum class io.gorules.zen.loader.ApiLoaderConfig.CacheEvictionPolicy
Least Frequently Used - evicts entries that are accessed least often.
load(String) - Method in class io.gorules.zen.loader.ApiDecisionLoader
 
load(String) - Method in class io.gorules.zen.loader.ClasspathDecisionLoader
 
load(String) - Method in interface io.gorules.zen.loader.DecisionLoader
Load a decision by its key.
load(String) - Method in class io.gorules.zen.loader.FilesystemDecisionLoader
 
load(String) - Method in class io.gorules.zen.loader.MemoryDecisionLoader
 
LRU - Enum constant in enum class io.gorules.zen.loader.ApiLoaderConfig.CacheEvictionPolicy
Least Recently Used - evicts entries that haven't been accessed recently.

M

maxRetries(int) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Set maximum number of retry attempts for failed requests.
MemoryDecisionLoader - Class in io.gorules.zen.loader
In-memory decision loader.
MemoryDecisionLoader() - Constructor for class io.gorules.zen.loader.MemoryDecisionLoader
Create a new empty memory loader.

R

removeDecision(String) - Method in class io.gorules.zen.loader.MemoryDecisionLoader
Remove a decision from memory.
retryDelay(Duration) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Set delay between retry attempts.

S

SIZE_BASED - Enum constant in enum class io.gorules.zen.loader.ApiLoaderConfig.CacheEvictionPolicy
Size-based - evicts based on memory size using LRU as tie-breaker.

T

timeout(Duration) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Set request timeout.

V

valueOf(String) - Static method in enum class io.gorules.zen.loader.ApiLoaderConfig.CacheEvictionPolicy
Returns the enum constant of this class with the specified name.
values() - Static method in enum class io.gorules.zen.loader.ApiLoaderConfig.CacheEvictionPolicy
Returns an array containing the constants of this enum class, in the order they are declared.

W

withApiLoader(ApiLoaderConfig) - Method in class io.gorules.zen.ZenEngineBuilder
Use API loader with full configuration.
withApiLoader(String) - Method in class io.gorules.zen.ZenEngineBuilder
Use API loader with given base URL.
withApiLoader(String, String) - Method in class io.gorules.zen.ZenEngineBuilder
Use API loader with given base URL and Bearer token.
withClasspathLoader(String) - Method in class io.gorules.zen.ZenEngineBuilder
Use classpath loader with given root path.
withFilesystemLoader(String) - Method in class io.gorules.zen.ZenEngineBuilder
Use filesystem loader with given root directory.
withLoader(DecisionLoader) - Method in class io.gorules.zen.ZenEngineBuilder
Use a custom decision loader.
withMaxDepth(int) - Method in class io.gorules.zen.ZenEngineBuilder
Set maximum evaluation depth.
withMemoryLoader() - Method in class io.gorules.zen.ZenEngineBuilder
Use in-memory loader.
withTracing(boolean) - Method in class io.gorules.zen.ZenEngineBuilder
Enable or disable tracing by default.

Z

ZenEngineBuilder - Class in io.gorules.zen
Builder for creating ZenEngineWrapper instances with fluent API.
ZenEngineConfig - Class in io.gorules.zen
Configuration for ZenEngineWrapper.
ZenEngineConfig() - Constructor for class io.gorules.zen.ZenEngineConfig
 
ZenEngineWrapper - Class in io.gorules.zen
Simple Java wrapper for ZEN Engine with easy-to-use API.
ZenEngineWrapper(ZenEngineConfig) - Constructor for class io.gorules.zen.ZenEngineWrapper
Create wrapper with configuration.
A B C D E F G H I L M R S T V W Z 
All Classes and Interfaces|All Packages|Serialized Form