public class JobRunnerRegistrar extends Object implements org.springframework.beans.factory.BeanNameAware
| Constructor and Description |
|---|
JobRunnerRegistrar() |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationReady(ApplicationReadyEvent applicationReadyEvent) |
void |
onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent) |
void |
register() |
void |
setBeanName(String beanName) |
void |
setCronExpression(String cronExpression) |
void |
setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) |
void |
setId(String id) |
void |
setInterval(long intervalMillis) |
void |
setLocal(boolean local) |
void |
setRunner(com.atlassian.scheduler.JobRunner runner) |
void |
setRunnerKey(String runnerKey) |
void |
setSchedulerService(com.atlassian.scheduler.SchedulerService schedulerService) |
void |
unregister() |
@PostConstruct public void register() throws Exception
Exception@PreDestroy public void unregister()
@EventListener public void onApplicationReady(ApplicationReadyEvent applicationReadyEvent) throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceException@EventListener public void onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent) throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceExceptionpublic void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void setCronExpression(String cronExpression)
public void setInterval(long intervalMillis)
public void setId(String id)
public void setRunnerKey(String runnerKey)
public void setRunner(com.atlassian.scheduler.JobRunner runner)
public void setSchedulerService(com.atlassian.scheduler.SchedulerService schedulerService)
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
public void setLocal(boolean local)
Copyright © 2023 Atlassian. All rights reserved.