All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.localhost.DefaultLocalHostSubscriptionEventProvider Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy