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)
MultiEventPublisher
EventPublisher.publish(Object)
for every event in the collection.publishAll
in interface MultiEventPublisher
public void publish(Object event)
publish
in interface com.atlassian.event.api.EventPublisher
public void register(Object listener)
register
in interface com.atlassian.event.api.EventListenerRegistrar
public void unregister(Object listener)
unregister
in interface com.atlassian.event.api.EventListenerRegistrar
public void unregisterAll()
unregisterAll
in interface com.atlassian.event.api.EventListenerRegistrar
Copyright © 2020 Atlassian. All rights reserved.