Class NotifyService
- java.lang.Object
-
- com.alibaba.nacos.config.server.service.notify.NotifyService
-
public class NotifyService extends Object
通知其他节点取最新数据的服务。 监听数据变更事件,通知所有的server。- Author:
- jiuRen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNotifyService.HttpResult
-
Field Summary
Fields Modifier and Type Field Description static StringNOTIFY_HEADER_LAST_MODIFIED為了方便系统beta,不改变notify.do接口,新增lastModifed参数通过Http header传递static StringNOTIFY_HEADER_OP_HANDLE_IP
-
Constructor Summary
Constructors Modifier Constructor Description protectedNotifyService()NotifyService(ServerListService serverListService)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NotifyService.HttpResultinvokeURL(String url, List<String> headers, String encoding)
-
-
-
Field Detail
-
NOTIFY_HEADER_LAST_MODIFIED
public static final String NOTIFY_HEADER_LAST_MODIFIED
為了方便系统beta,不改变notify.do接口,新增lastModifed参数通过Http header传递- See Also:
- Constant Field Values
-
NOTIFY_HEADER_OP_HANDLE_IP
public static final String NOTIFY_HEADER_OP_HANDLE_IP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NotifyService
@Autowired public NotifyService(ServerListService serverListService)
-
NotifyService
protected NotifyService()
-
-
Method Detail
-
invokeURL
public static NotifyService.HttpResult invokeURL(String url, List<String> headers, String encoding) throws IOException
- Throws:
IOException
-
-