public class InitialWatchersListener extends Object
| Constructor and Description |
|---|
InitialWatchersListener(com.atlassian.event.api.EventPublisher eventPublisher,
FeatureManager featureManager,
InitialWatchersAssigner worker) |
| Modifier and Type | Method and Description |
|---|---|
void |
onAsyncInitialWatchersEvent(AsyncInitialWatchersEvent event)
Listens for the async issue created event generated after issue creation (see #onIssueCreatedOrUpdated())and adds the watchers to the issue.
|
void |
onIssueCreatedOrUpdated(IssueEvent event)
Upon receipt of a synchronous Issue Created/Updated Event, we generate a new async one
This allows the watcher addition to be done asynchronously and without affecting the issue creation/edition
|
void |
onStart() |
void |
onStop() |
public InitialWatchersListener(com.atlassian.event.api.EventPublisher eventPublisher,
FeatureManager featureManager,
InitialWatchersAssigner worker)
@PostConstruct public void onStart()
@PreDestroy public void onStop()
@EventListener public void onIssueCreatedOrUpdated(IssueEvent event)
@EventListener public void onAsyncInitialWatchersEvent(AsyncInitialWatchersEvent event)
Copyright © 2002-2024 Atlassian. All Rights Reserved.