MCPcopy Create free account
hub / github.com/e2wugui/zeze / start

Method start

ZezeJava/ZezeJava/src/main/java/Zeze/Component/Timer.java:131–147  ·  view source on GitHub ↗

非事务环境调用。用于启动Timer服务。

()

Source from the content-addressed store, hash-verified

129 * 非事务环境调用。用于启动Timer服务。
130 */
131 public void start() throws Exception {
132 lock();
133 try {
134 if (started)
135 return;
136 started = true;
137 var hotManager = zeze.getHotManager();
138 if (hotManager != null) {
139 hotManager.addHotBeanFactory(this);
140 beanFactory.registerWatch(this::tryRecordHotModule);
141 }
142 // Task.run(this::loadTimer, "Timer.loadTimer");
143 loadTimer();
144 } finally {
145 unlock();
146 }
147 }
148
149 /**
150 * 初始化在线Timer。在线Timer需要ProviderApp。

Callers

nothing calls this directly

Calls 6

loadTimerMethod · 0.95
addHotBeanFactoryMethod · 0.80
registerWatchMethod · 0.80
lockMethod · 0.65
unlockMethod · 0.65
getHotManagerMethod · 0.45

Tested by

no test coverage detected