org.bidib.wizard.localhost.DefaultLocalHostSubscriptionEventProvider Maven / Gradle / Ivy
package org.bidib.wizard.localhost;
import java.util.List;
import java.util.Map;
import org.bidib.jbidibc.messages.enums.MessageClassEnum;
import org.bidib.wizard.localhost.event.SubscriberEvent;
import io.reactivex.rxjava3.disposables.Disposable;
import io.reactivex.rxjava3.functions.Consumer;
public class DefaultLocalHostSubscriptionEventProvider implements LocalHostSubscriptionEventProvider {
private LocalHostBidibDistributedMessageHandler localHostHandler;
public void setLocalHostHandler(final LocalHostBidibDistributedMessageHandler localHostHandler) {
this.localHostHandler = localHostHandler;
}
@Override
public Disposable subscribeSubscriberEvents(Consumer onNext, Consumer onError) {
return localHostHandler.subscribeSubscriberEvents(onNext, onError);
}
@Override
public Map> getSubscriptions() {
return localHostHandler.getSubscriptions();
}
}