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

Method scheduleNamed

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

调度一个有名的Timer。 需要在事务内调用。 @param timerId 名字, 如果同名timer已存在则直接返回false @param delay 首次触发延迟(毫秒), 不能小于0 @param handleClass 回调class @param customData 自定义数据 @return 调度是否成功

(@NotNull String timerId, long delay,
								 @NotNull Class<? extends TimerHandle> handleClass, @Nullable Bean customData)

Source from the content-addressed store, hash-verified

551 * @return 调度是否成功
552 */
553 public boolean scheduleNamed(@NotNull String timerId, long delay,
554 @NotNull Class<? extends TimerHandle> handleClass, @Nullable Bean customData) {
555 return scheduleNamed(timerId, delay, -1, -1, -1, eMissfirePolicyNothing, handleClass, customData);
556 }
557
558 /**
559 * 调度一个有名的Timer。

Callers 4

startMethod · 0.80
StartMethod · 0.80
StartMethod · 0.80
StartMethod · 0.80

Calls 11

cancelMethod · 0.95
initSimpleTimerMethod · 0.95
setMissfirePolicyMethod · 0.95
scheduleMethod · 0.95
cronEqualsMethod · 0.95
initCronTimerMethod · 0.95
setMissfirePolicyMethod · 0.95
startsWithMethod · 0.80
getMethod · 0.65
getServerIdMethod · 0.65
getConfigMethod · 0.45

Tested by

no test coverage detected