org.bidib.wizard.localhost.DefaultLocalHostSubscriptionEventProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-localhost Show documentation
Show all versions of bidibwizard-localhost Show documentation
jBiDiB BiDiB Wizard localhost POM
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();
}
}