-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.yas.cart.config; | ||
|
||
import org.springframework.retry.annotation.EnableRetry; | ||
|
||
@EnableRetry | ||
public class RetryConfig { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.yas.cart.service; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
|
||
@Slf4j | ||
abstract class CircuitBreakFallbackService { | ||
|
||
protected void handleBodilessFallback(Throwable throwable) throws Throwable { | ||
Check warning on line 8 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
handleError(throwable); | ||
Check warning on line 9 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} | ||
Check warning on line 10 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
|
||
protected Object handleFallback(Throwable throwable) throws Throwable { | ||
Check warning on line 12 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
handleError(throwable); | ||
Check warning on line 13 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
return null; | ||
Check warning on line 14 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} | ||
Check warning on line 15 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
|
||
private void handleError(Throwable throwable) throws Throwable { | ||
Check warning on line 17 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
log.error("Circuit breaker records an error. Detail {}", throwable.getMessage()); | ||
Check warning on line 18 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
throw throwable; | ||
Check warning on line 19 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} | ||
Check warning on line 20 in cart/src/main/java/com/yas/cart/service/CircuitBreakFallbackService.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.yas.customer.config; | ||
|
||
import org.springframework.retry.annotation.EnableRetry; | ||
|
||
@EnableRetry | ||
public class RetryConfig { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.yas.customer.service; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
|
||
@Slf4j | ||
abstract class AbstractCircuitBreakFallbackHandler { | ||
|
||
protected void handleBodilessFallback(Throwable throwable) throws Throwable { | ||
Check warning on line 8 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
handleError(throwable); | ||
Check warning on line 9 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} | ||
Check warning on line 10 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
|
||
protected Object handleFallback(Throwable throwable) throws Throwable { | ||
Check warning on line 12 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
handleError(throwable); | ||
Check warning on line 13 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
return null; | ||
Check warning on line 14 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} | ||
Check warning on line 15 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
|
||
private void handleError(Throwable throwable) throws Throwable { | ||
Check warning on line 17 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
log.error("Circuit breaker records an error. Detail {}", throwable.getMessage()); | ||
Check warning on line 18 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
throw throwable; | ||
Check warning on line 19 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} | ||
Check warning on line 20 in customer/src/main/java/com/yas/customer/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.yas.inventory.config; | ||
|
||
import org.springframework.retry.annotation.EnableRetry; | ||
|
||
@EnableRetry | ||
public class RetryConfig { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.yas.inventory.service; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
|
||
@Slf4j | ||
abstract class AbstractCircuitBreakFallbackHandler { | ||
|
||
protected void handleBodilessFallback(Throwable throwable) throws Throwable { | ||
Check warning on line 8 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
handleError(throwable); | ||
Check warning on line 9 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} | ||
Check warning on line 10 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
|
||
protected Object handleFallback(Throwable throwable) throws Throwable { | ||
Check warning on line 12 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
handleError(throwable); | ||
Check warning on line 13 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
return null; | ||
Check warning on line 14 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} | ||
Check warning on line 15 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
|
||
private void handleError(Throwable throwable) throws Throwable { | ||
Check warning on line 17 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
log.error("Circuit breaker records an error. Detail {}", throwable.getMessage()); | ||
Check warning on line 18 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
throw throwable; | ||
Check warning on line 19 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} | ||
Check warning on line 20 in inventory/src/main/java/com/yas/inventory/service/AbstractCircuitBreakFallbackHandler.java GitHub Actions / Checkstylecom.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.yas.webhook.config; | ||
|
||
import org.springframework.retry.annotation.EnableRetry; | ||
|
||
@EnableRetry | ||
public class RetryCircuitBreakerConfig { | ||
|
||
} |