Class RetrySafetyResolver
java.lang.Object
org.j7m.middleware.reliability.RetrySafetyResolver
Resolves whether an invocation is safe for automatic retry.
The resolver is stateless and thread-safe. Explicit invocation options may
tighten retry behavior but cannot make a NonIdempotent method
automatically retry-safe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRetrySafe(Method method, org.j7m.middleware.api.reliability.InvocationReliabilityOptions options) Determines retry safety for a method and invocation options.
-
Constructor Details
-
RetrySafetyResolver
public RetrySafetyResolver()Creates a resolver.
-
-
Method Details
-
isRetrySafe
public boolean isRetrySafe(Method method, org.j7m.middleware.api.reliability.InvocationReliabilityOptions options) Determines retry safety for a method and invocation options.- Parameters:
method- Java methodoptions- reliability options- Returns:
truewhen retry is safe
-