Class InferenceRetryHandler
- java.lang.Object
-
- com.codedstreams.otterstreams.sql.runtime.InferenceRetryHandler
-
public class InferenceRetryHandler extends Object
Handles retry logic for failed inference operations.- Since:
- 1.0.0
- Author:
- Nestor Martourez Abiangang A.
-
-
Constructor Summary
Constructors Constructor Description InferenceRetryHandler(int maxRetries, long baseBackoffMs, double backoffMultiplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TexecuteWithRetry(Supplier<T> operation, String operationName)Executes operation with retry logic.static booleanisRetryable(Exception e)Checks if exception is retryable.
-
-
-
Method Detail
-
executeWithRetry
public <T> T executeWithRetry(Supplier<T> operation, String operationName) throws InferenceException
Executes operation with retry logic.- Throws:
InferenceException
-
isRetryable
public static boolean isRetryable(Exception e)
Checks if exception is retryable.
-
-