public class AppRevisionCleaner extends Object implements MetaLeaderService.MetaLeaderElectorListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| 构造器和说明 |
|---|
AppRevisionCleaner() |
AppRevisionCleaner(MetaLeaderService metaLeaderService) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
becomeLeader() |
void |
digestAppRevision() |
void |
init() |
void |
loseLeader() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setEnabled(boolean enabled) |
void |
start() |
public AppRevisionCleaner()
public AppRevisionCleaner(MetaLeaderService metaLeaderService)
@PostConstruct public void init()
public void start()
@Scheduled(initialDelay=60000L,
fixedRate=60000L)
public void digestAppRevision()
public void setEnabled(boolean enabled)
public void becomeLeader()
public void loseLeader()
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>Copyright © 2023 The Ant Financial. All rights reserved.