mirror of https://github.com/longtai-cn/hippo4j
parent
ac65dac6f1
commit
aa19960582
@ -0,0 +1,51 @@
|
||||
package io.dynamic.threadpool.starter.core.registry;
|
||||
|
||||
/**
|
||||
* Discovery Client.
|
||||
*
|
||||
* @author chen.ma
|
||||
* @date 2021/7/13 21:51
|
||||
*/
|
||||
public class DiscoveryClient {
|
||||
|
||||
private InstanceInfo instanceInfo;
|
||||
|
||||
/**
|
||||
* 初始化所有计划任务
|
||||
*/
|
||||
private void initScheduledTasks() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 注册实例到服务端
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
boolean register() {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 与 Server 端保持心跳续约
|
||||
*/
|
||||
public class HeartbeatThread implements Runnable {
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 心跳续约
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
boolean renew() {
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package io.dynamic.threadpool.starter.core.registry;
|
||||
|
||||
/**
|
||||
* Dynamic Tp Client.
|
||||
*
|
||||
* @author chen.ma
|
||||
* @date 2021/7/13 21:50
|
||||
*/
|
||||
public interface DynamicTpClient {
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package io.dynamic.threadpool.starter.core.registry;
|
||||
|
||||
/**
|
||||
* Instance Info.
|
||||
*
|
||||
* @author chen.ma
|
||||
* @date 2021/7/13 22:10
|
||||
*/
|
||||
public class InstanceInfo {
|
||||
|
||||
private String appName;
|
||||
}
|
Loading…
Reference in new issue