@Component public class DefaultNotificationJobDelegate extends Object implements InitializingBean, NotificationJobDelegate
Modifier and Type | Field and Description |
---|---|
protected ApplicationEventPublisher |
publisher |
Constructor and Description |
---|
DefaultNotificationJobDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
execute() |
TaskExec |
executeSingle(NotificationTask task) |
void |
interrupt() |
boolean |
isInterrupted() |
protected void |
setStatus(String status) |
@Autowired protected ApplicationEventPublisher publisher
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
protected void setStatus(String status)
public void interrupt()
interrupt
in interface JobDelegate
public boolean isInterrupted()
isInterrupted
in interface JobDelegate
@Transactional public TaskExec executeSingle(NotificationTask task)
executeSingle
in interface NotificationJobDelegate
@Transactional public void execute() throws org.quartz.JobExecutionException
execute
in interface NotificationJobDelegate
org.quartz.JobExecutionException
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.