public interface IssueEventBridge
IssueEventBridge is a simple hub that allows to listen to issue changes
and report issue changes.
The bridge subscribes to the JIRA notification system to get the standard notifications about the issue changes. Additionally, it allows components to report issue changes.
Only the IDs of the issues that have changed are reported, not the changes themselves. The bridge is also allowed to delay reporting changes a bit to accumulate a bigger change set.
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IssueListener listener)
Add an
IssueListener that will get notifications of the subsequent changes. |
void |
removeListener(IssueListener listener)
Removes the listener from the component
|
void |
reportChanges(LongList issueIds,
JiraChangeType eventType)
This method is used to notify the bridge that the listed issues have changed or that the listeners must
receive the notification anyway, probably to recount something.
|
void |
reportEvent(JiraChangeEvent event)
This method is used to notify the bridge about a specifically constructed event object, which gets
rebroadcast to the listeners.
|
void addListener(@Nullable
IssueListener listener)
IssueListener that will get notifications of the subsequent changes.listener - the listenervoid removeListener(@Nullable
IssueListener listener)
listener - the listenervoid reportChanges(@Nullable
LongList issueIds,
JiraChangeType eventType)
issueIds - the list of changed issueseventType - the event typevoid reportEvent(@Nullable
JiraChangeEvent event)
event - the event describing a changeCopyright © 2023 ALM Works. All Rights Reserved.