mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 12:16:46 +00:00
refactor: sanitize javadoc
This commit is contained in:
1 parent
7273c242b6
commit
8389456532
204 files changed
+127
-337
No files matched your search
@@ -37,7 +37,6 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
* microservice architectures, please refer to: [Microservices Health Checks
|
||||
* API]('https://microservices.io/patterns/observability/health-check-api.html').
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@EnableCaching
|
||||
@EnableScheduling
|
||||
|
||||
@@ -40,7 +40,6 @@ import org.springframework.stereotype.Component;
|
||||
/**
|
||||
* An asynchronous health checker component that executes health checks in a separate thread.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
|
||||
@@ -41,7 +41,6 @@ import org.springframework.stereotype.Component;
|
||||
/**
|
||||
* A health indicator that checks the health of the system's CPU.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
|
||||
@@ -41,7 +41,6 @@ import org.springframework.stereotype.Component;
|
||||
* A custom health indicator that periodically checks the health of a database and caches the
|
||||
* result. It leverages an asynchronous health checker to perform the health checks.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
|
||||
-1
@@ -42,7 +42,6 @@ import org.springframework.stereotype.Component;
|
||||
* the health indicator returns {@link Health#up()} and logs a success message. If all retry
|
||||
* attempts fail, the health indicator returns {@link Health#down()} and logs an error message.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
|
||||
-1
@@ -45,7 +45,6 @@ import org.springframework.stereotype.Component;
|
||||
* collection time, memory pool name, and garbage collector algorithm for each garbage collector and
|
||||
* presents the details in a structured manner.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
|
||||
@@ -35,7 +35,6 @@ import lombok.Data;
|
||||
* An entity class that represents a health check record in the database. This class is used to
|
||||
* persist the results of health checks performed by the `DatabaseTransactionHealthIndicator`.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Entity
|
||||
@Data
|
||||
|
||||
@@ -34,7 +34,6 @@ import org.springframework.stereotype.Repository;
|
||||
* A repository class for managing health check records in the database. This class provides methods
|
||||
* for checking the health of the database connection and performing test transactions.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Slf4j
|
||||
@Repository
|
||||
|
||||
@@ -42,7 +42,6 @@ import org.springframework.stereotype.Component;
|
||||
* status accordingly. It uses an asynchronous health checker to perform the health check and a
|
||||
* configurable memory usage threshold to determine the health status.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
|
||||
@@ -35,7 +35,6 @@ import org.springframework.stereotype.Component;
|
||||
/**
|
||||
* Configuration class for retry policies used in health check operations.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Configuration
|
||||
@Component
|
||||
|
||||
@@ -48,7 +48,6 @@ import org.springframework.boot.actuate.health.Status;
|
||||
/**
|
||||
* Tests for {@link AsynchronousHealthChecker}.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Slf4j
|
||||
class AsynchronousHealthCheckerTest {
|
||||
|
||||
@@ -37,7 +37,6 @@ import org.springframework.boot.actuate.health.Status;
|
||||
/**
|
||||
* Test class for the {@link CpuHealthIndicator} class.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
class CpuHealthIndicatorTest {
|
||||
|
||||
|
||||
@@ -50,7 +50,6 @@ import org.springframework.context.annotation.Configuration;
|
||||
/**
|
||||
* Tests class< for {@link CustomHealthIndicator}. *
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
class CustomHealthIndicatorTest {
|
||||
|
||||
|
||||
@@ -46,7 +46,6 @@ import org.springframework.retry.support.RetryTemplate;
|
||||
/**
|
||||
* Unit tests for the {@link DatabaseTransactionHealthIndicator} class.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
class DatabaseTransactionHealthIndicatorTest {
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ import org.springframework.boot.actuate.health.Status;
|
||||
/**
|
||||
* Test class for {@link GarbageCollectionHealthIndicator}.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
class GarbageCollectionHealthIndicatorTest {
|
||||
|
||||
|
||||
@@ -38,7 +38,6 @@ import org.mockito.junit.jupiter.MockitoExtension;
|
||||
/**
|
||||
* Tests class for {@link HealthCheckRepository}.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
class HealthCheckRepositoryTest {
|
||||
|
||||
@@ -49,7 +49,6 @@ import org.springframework.http.HttpStatus;
|
||||
* "availableProcessors":2,"systemCpuLoad":"100.00%","loadAverage":1.97,"timestamp":"2023-11-09T08:34:15.974557865Z",
|
||||
* * "error":"High system CPU load"}}} *
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@Slf4j
|
||||
@SpringBootTest(
|
||||
|
||||
@@ -44,7 +44,6 @@ import org.springframework.boot.actuate.health.Status;
|
||||
/**
|
||||
* Unit tests for {@link MemoryHealthIndicator}.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@ExtendWith(MockitoExtension.class)
|
||||
class MemoryHealthIndicatorTest {
|
||||
|
||||
@@ -35,7 +35,6 @@ import org.springframework.retry.support.RetryTemplate;
|
||||
/**
|
||||
* Unit tests for the {@link RetryConfig} class.
|
||||
*
|
||||
* @author ydoksanbir
|
||||
*/
|
||||
@SpringBootTest(classes = RetryConfig.class)
|
||||
class RetryConfigTest {
|
||||
|
||||
Reference in new issue
Block a user