@@ -79,7 +79,7 @@ private RetryOperationHelper() {
7979 */
8080 @ SuppressWarnings ("unchecked" )
8181 public static <T > T retryOperation (
82- DurableContext context , String name , RetryableOperation <T > operation , RetryOperationConfig config ) {
82+ DurableContext context , String name , WithRetry <T > operation , RetryOperationConfig config ) {
8383 Objects .requireNonNull (context , "context cannot be null" );
8484 Objects .requireNonNull (name , "name cannot be null" );
8585 Objects .requireNonNull (operation , "operation cannot be null" );
@@ -102,8 +102,7 @@ public static <T> T retryOperation(
102102 * @param config retry configuration including the retry strategy
103103 * @return the operation result
104104 */
105- public static <T > T retryOperation (
106- DurableContext context , RetryableOperation <T > operation , RetryOperationConfig config ) {
105+ public static <T > T retryOperation (DurableContext context , WithRetry <T > operation , RetryOperationConfig config ) {
107106 Objects .requireNonNull (context , "context cannot be null" );
108107 Objects .requireNonNull (operation , "operation cannot be null" );
109108 Objects .requireNonNull (config , "config cannot be null" );
@@ -119,7 +118,7 @@ public static <T> T retryOperation(
119118 * are internal SDK control flow signals that must propagate immediately.
120119 */
121120 private static <T > T executeRetryLoop (
122- DurableContext context , String name , RetryableOperation <T > operation , RetryOperationConfig config ) {
121+ DurableContext context , String name , WithRetry <T > operation , RetryOperationConfig config ) {
123122 var attempt = 1 ;
124123 while (true ) {
125124 try {
0 commit comments