Optimize the comments and logs of the dynamic registry module.

pull/161/head
chen.ma 3 years ago
parent 48786bc738
commit c51711ecaa

@ -1,22 +1,22 @@
package com.github.dynamic.threadpool.registry.config;
import com.github.dynamic.threadpool.registry.core.BaseInstanceRegistry;
import org.springframework.beans.factory.annotation.Autowired;
import lombok.AllArgsConstructor;
import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;
/**
* Registry Configuration.
* Registry configuration.
*
* @author chen.ma
* @date 2021/8/12 21:48
*/
@Configuration
@AllArgsConstructor
public class RegistryConfiguration {
@Autowired
private BaseInstanceRegistry baseInstanceRegistry;
private final BaseInstanceRegistry baseInstanceRegistry;
@PostConstruct
public void registryInit() {

@ -16,7 +16,7 @@ import java.util.List;
import static com.github.dynamic.threadpool.common.constant.Constants.BASE_PATH;
/**
* Application Controller.
* Application controller.
*
* @author chen.ma
* @date 2021/8/8 22:24

@ -20,7 +20,7 @@ import static com.github.dynamic.threadpool.common.constant.Constants.EVICTION_I
import static com.github.dynamic.threadpool.common.constant.Constants.SCHEDULED_THREAD_CORE_NUM;
/**
* Base Instance Registry.
* Base instance registry.
*
* @author chen.ma
* @date 2021/8/8 22:46

@ -5,7 +5,7 @@ import com.github.dynamic.threadpool.common.model.InstanceInfo;
import java.util.List;
/**
* Instance Registry.
* Instance registry.
*
* @author chen.ma
* @date 2021/8/8 22:31
@ -13,7 +13,7 @@ import java.util.List;
public interface InstanceRegistry<T> {
/**
* list Instance.
* List instance.
*
* @param appName
* @return
@ -21,14 +21,14 @@ public interface InstanceRegistry<T> {
List<Lease<T>> listInstance(String appName);
/**
* register.
* Register.
*
* @param info
*/
void register(T info);
/**
* renew.
* Renew.
*
* @param instanceRenew
* @return

@ -3,7 +3,7 @@ package com.github.dynamic.threadpool.registry.core;
import com.github.dynamic.threadpool.common.model.InstanceInfo.InstanceStatus;
/**
* Status Override Result.
* Status override result.
*
* @author chen.ma
* @date 2021/8/8 23:11

Loading…
Cancel
Save