mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-27 20:25:16 +00:00
Resolves checkstyle errors for callback, chain, circuit-breaker (#1060)
* Reduces checkstyle errors in callback * Reduces checkstyle errors in chain * Reduces checkstyle errors in circuit-breaker
This commit is contained in:
committed by
Ilkka Seppälä
parent
efc17fcc70
commit
31f27a720b
@@ -24,8 +24,8 @@
|
||||
package com.iluwatar.circuitbreaker;
|
||||
|
||||
/**
|
||||
* The service class which makes local and remote calls
|
||||
* Uses {@link CircuitBreaker} object to ensure remote calls don't use up resources
|
||||
* The service class which makes local and remote calls Uses {@link CircuitBreaker} object to ensure
|
||||
* remote calls don't use up resources.
|
||||
*/
|
||||
public class MonitoringService {
|
||||
|
||||
@@ -35,9 +35,11 @@ public class MonitoringService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Try to get result from remote server
|
||||
* @param circuitBreaker The circuitBreaker object with all parameters
|
||||
* @param serverStartTime Time at which actual server was started which makes calls to this service
|
||||
* Try to get result from remote server.
|
||||
*
|
||||
* @param circuitBreaker The circuitBreaker object with all parameters
|
||||
* @param serverStartTime Time at which actual server was started which makes calls to this
|
||||
* service
|
||||
* @return result from the remote response or exception raised by it.
|
||||
*/
|
||||
public String remoteResourceResponse(CircuitBreaker circuitBreaker, long serverStartTime) {
|
||||
|
||||
Reference in New Issue
Block a user