public class DelegatingMultiEventPublisher extends Object implements MultiEventPublisher
MultiEventPublisher that delegates to an underlying EventPublisher| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.event.api.EventPublisher |
delegate |
| Constructor and Description |
|---|
DelegatingMultiEventPublisher(com.atlassian.event.api.EventPublisher delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
publish(Object event) |
void |
publishAll(Collection<Object> events)
Publish events that will be consumed by their respective registered listeners.
|
void |
register(Object listener) |
void |
unregister(Object listener) |
void |
unregisterAll() |
public DelegatingMultiEventPublisher(com.atlassian.event.api.EventPublisher delegate)
public void publishAll(Collection<Object> events)
MultiEventPublisherEventPublisher.publish(Object) for every event in the collection.publishAll in interface MultiEventPublisherpublic void publish(Object event)
publish in interface com.atlassian.event.api.EventPublisherpublic void register(Object listener)
register in interface com.atlassian.event.api.EventListenerRegistrarpublic void unregister(Object listener)
unregister in interface com.atlassian.event.api.EventListenerRegistrarpublic void unregisterAll()
unregisterAll in interface com.atlassian.event.api.EventListenerRegistrarCopyright © 2023 Atlassian. All rights reserved.