This clarifies the deprecated API. As it turns out, instantiation
without an executor should be removed, not the other way around.
Change-Id: I3a2738a4da18ef92d3e8c38d0c12f6df653bd74c
Signed-off-by: Robert Varga <rovarga@cisco.com>
private final ListenerRegistry<NotificationInterestListener> interestListeners =
ListenerRegistry.create();
-
private final Multimap<Class<? extends Notification>, NotificationListenerRegistration<?>> listeners =
Multimaps.synchronizedSetMultimap(HashMultimap.<Class<? extends Notification>, NotificationListenerRegistration<?>>create());
- private ExecutorService executor;
+ private final ExecutorService executor;
- @Deprecated
public NotificationBrokerImpl(final ExecutorService executor) {
- this.setExecutor(executor);
- }
-
- public void setExecutor(final ExecutorService executor) {
this.executor = Preconditions.checkNotNull(executor);
}