public class SubvertedListenerManager extends Object implements ListenerManager
Constructor and Description |
---|
SubvertedListenerManager() |
Modifier and Type | Method and Description |
---|---|
JiraListener |
createListener(String name,
Class<? extends JiraListener> clazz)
Creates a new JiraListener.
|
void |
deleteListener(Class<? extends JiraListener> clazz)
Deletes any listeners of the given class.
|
Map<String,JiraListener> |
getListeners()
Returns a map of listeners.
|
void |
onRefreshListeners()
Invoked when another node in the cluster has refreshed its listeners.
|
void |
refresh()
Reloads the map of listeners from the db.
|
public Map<String,JiraListener> getListeners()
ListenerManager
getListeners
in interface ListenerManager
public JiraListener createListener(String name, Class<? extends JiraListener> clazz)
ListenerManager
createListener
in interface ListenerManager
name
- The name of the Listenerclazz
- The class of the Listener.public void deleteListener(Class<? extends JiraListener> clazz)
ListenerManager
deleteListener
in interface ListenerManager
clazz
- The class of the Listener.public void refresh()
ListenerManager
refresh
in interface ListenerManager
public void onRefreshListeners()
ListenerManager
onRefreshListeners
in interface ListenerManager
Copyright © 2002-2022 Atlassian. All Rights Reserved.