Index

A B C D E F G H I L M R T 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.
apiKey(String) - Method in class io.gorules.zen.loader.ApiLoaderConfig.Builder
Add API key header.
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.
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

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 with default caching enabled.
ClasspathDecisionLoader(String, boolean) - Constructor for class io.gorules.zen.loader.ClasspathDecisionLoader
Create classpath loader with caching option.
clear() - Method in class io.gorules.zen.loader.MemoryDecisionLoader
Clear all decisions from memory.
clearCache() - Method in class io.gorules.zen.loader.ApiDecisionLoader
Clear the cache.
clearCache() - Method in class io.gorules.zen.loader.ClasspathDecisionLoader
Clear the cache.
clearCache() - Method in class io.gorules.zen.loader.FilesystemDecisionLoader
Clear the cache.
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.
evict(String) - Method in class io.gorules.zen.loader.ApiDecisionLoader
Evict a specific decision from cache.
evict(String) - Method in class io.gorules.zen.loader.ClasspathDecisionLoader
Evict a specific decision from cache.
evict(String) - Method in class io.gorules.zen.loader.FilesystemDecisionLoader
Evict a specific decision from cache.

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 with default caching enabled.
FilesystemDecisionLoader(String, boolean) - Constructor for class io.gorules.zen.loader.FilesystemDecisionLoader
Create filesystem loader with caching option.

G

getAllHeaders() - Method in class io.gorules.zen.loader.ApiLoaderConfig
Get all headers (static + dynamic) for a request.
getBaseUrl() - Method in class io.gorules.zen.loader.ApiLoaderConfig
Get the base URL for API requests.
getConfig() - Method in class io.gorules.zen.loader.ApiDecisionLoader
Get the configuration for this loader.
getDecision(String) - Method in class io.gorules.zen.ZenEngineWrapper
Get a decision by key (for reuse/caching).
getEngine() - Method in class io.gorules.zen.ZenEngineWrapper
Get the underlying ZEN engine for advanced use cases.
getHeaders() - Method in interface io.gorules.zen.loader.HeaderProvider
Provides headers for the HTTP request.
getLoader() - Method in class io.gorules.zen.ZenEngineConfig
Get the decision loader.
getMaxDepth() - Method in class io.gorules.zen.ZenEngineConfig
Get maximum evaluation depth.
getMaxRetries() - Method in class io.gorules.zen.loader.ApiLoaderConfig
Get maximum number of retry attempts.
getObjectMapper() - Method in class io.gorules.zen.ZenEngineWrapper
Get the ObjectMapper used for JSON processing.
getRetryDelay() - Method in class io.gorules.zen.loader.ApiLoaderConfig
Get delay between retry attempts.
getStaticHeaders() - Method in class io.gorules.zen.loader.ApiLoaderConfig
Get static headers (does not include dynamic headers from provider).
getTimeout() - Method in class io.gorules.zen.loader.ApiLoaderConfig
Get request timeout duration.

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
 
isCached(String) - Method in class io.gorules.zen.loader.ApiDecisionLoader
Check if a decision is cached.
isEnableCaching() - Method in class io.gorules.zen.loader.ApiLoaderConfig
Check if caching is enabled.
isEnableTrace() - Method in class io.gorules.zen.ZenEngineConfig
Check if tracing is enabled.

L

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
 

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.

T

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

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.
withCaching(boolean) - Method in class io.gorules.zen.ZenEngineBuilder
Enable or disable decision caching.
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(DecisionLoader, int, boolean) - Constructor for class io.gorules.zen.ZenEngineConfig
Create configuration.
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 T W Z 
All Classes and Interfaces|All Packages|Serialized Form