public abstract class AbstractWaterAdapter extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
msg_receiver_path |
protected String |
service_check_path |
protected int |
service_port |
protected String |
service_status_path |
protected String |
service_stop_path |
| 构造器和说明 |
|---|
AbstractWaterAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract String |
alarm_mobile()
报警手机号 :: 需要重写
|
void |
cacheUpdateHandler(String tag) |
void |
configUpdateHandler(String tag,
String name) |
protected String |
doMessageReceive(Fun1<String,String> paramS) |
protected static String |
getLocalAddress(int port) |
boolean |
is_unstable()
是否为稳定服务 :: 可以重写
|
String |
localHost() |
protected boolean |
messageReceiveForInner(MessageM msg) |
boolean |
messageReceiveHandler(MessageM msg) |
protected void |
messageSubscribe() |
void |
messageSubscribeHandler() |
void |
messageSubscribeTopic(String msg_receiver_url,
int receive_way,
String... topics) |
protected void |
registerService() |
abstract String |
service_name()
服务名称 :: 需要重写
|
String |
service_secretKey()
服务密钥 :: 可以重写
|
String |
service_tag()
服务空间 :: 可以重写
|
protected String service_status_path
protected String service_check_path
protected String service_stop_path
protected String msg_receiver_path
protected int service_port
public abstract String alarm_mobile()
public abstract String service_name()
public String service_tag()
public String service_secretKey()
public boolean is_unstable()
public String localHost()
protected void registerService()
protected void messageSubscribe()
public void messageSubscribeHandler()
public void messageSubscribeTopic(String msg_receiver_url, int receive_way, String... topics) throws Exception
Exceptionpublic void cacheUpdateHandler(String tag)
protected String doMessageReceive(Fun1<String,String> paramS) throws Throwable
Throwablepublic boolean messageReceiveHandler(MessageM msg) throws Throwable
Throwableprotected boolean messageReceiveForInner(MessageM msg)
protected static String getLocalAddress(int port)
Copyright © 2021. All rights reserved.