Commit eb6a8a4a authored by Mingyang Zhu's avatar Mingyang Zhu
Browse files

remove the java doc

parent 79e42d07
......@@ -2,11 +2,6 @@ package org.opengroup.osdu.partition.provider.interfaces;
public interface IHealthCheckService {
default void performLivenessCheck() {
}
default void performReadinessCheck() {
}
void performLivenessCheck();
void performReadinessCheck();
}
package org.opengroup.osdu.partition.service;
import org.opengroup.osdu.partition.provider.interfaces.IHealthCheckService;
import org.springframework.stereotype.Service;
@Service
public class DefaultHealthCheckImpl implements IHealthCheckService {
@Override
public void performLivenessCheck() {
}
@Override
public void performReadinessCheck() {
}
}
......@@ -4,14 +4,17 @@ import lombok.RequiredArgsConstructor;
import org.opengroup.osdu.partition.model.PartitionInfo;
import org.opengroup.osdu.partition.provider.interfaces.IHealthCheckService;
import org.opengroup.osdu.partition.provider.interfaces.IPartitionServiceCache;
import org.opengroup.osdu.partition.service.DefaultHealthCheckImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
@Service
@Primary
@RequiredArgsConstructor
public class HealthCheckServiceImpl implements IHealthCheckService {
public class HealthCheckServiceImpl extends DefaultHealthCheckImpl {
@Autowired
@Qualifier("partitionServiceCache")
......@@ -20,7 +23,7 @@ public class HealthCheckServiceImpl implements IHealthCheckService {
@Value("${redis.custom.readiness.check.enabled}")
private boolean redisCustomReadinessCheck;
@Override
public void performReadinessCheck() {
if (redisCustomReadinessCheck) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment