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; package com.github.dynamic.threadpool.registry.config;
import com.github.dynamic.threadpool.registry.core.BaseInstanceRegistry; 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 org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct; import javax.annotation.PostConstruct;
/** /**
* Registry Configuration. * Registry configuration.
* *
* @author chen.ma * @author chen.ma
* @date 2021/8/12 21:48 * @date 2021/8/12 21:48
*/ */
@Configuration @Configuration
@AllArgsConstructor
public class RegistryConfiguration { public class RegistryConfiguration {
@Autowired private final BaseInstanceRegistry baseInstanceRegistry;
private BaseInstanceRegistry baseInstanceRegistry;
@PostConstruct @PostConstruct
public void registryInit() { public void registryInit() {

@ -16,7 +16,7 @@ import java.util.List;
import static com.github.dynamic.threadpool.common.constant.Constants.BASE_PATH; import static com.github.dynamic.threadpool.common.constant.Constants.BASE_PATH;
/** /**
* Application Controller. * Application controller.
* *
* @author chen.ma * @author chen.ma
* @date 2021/8/8 22:24 * @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; import static com.github.dynamic.threadpool.common.constant.Constants.SCHEDULED_THREAD_CORE_NUM;
/** /**
* Base Instance Registry. * Base instance registry.
* *
* @author chen.ma * @author chen.ma
* @date 2021/8/8 22:46 * @date 2021/8/8 22:46

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

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

Loading…
Cancel
Save