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

org.bidib.wizard.common.node.ConnectionNodeAwarePublisher Maven / Gradle / Ivy

package org.bidib.wizard.common.node;

import org.bidib.wizard.api.model.event.NodeEvent;
import org.bidib.wizard.model.ports.event.PortEvent;

import io.reactivex.rxjava3.subjects.Subject;

public class ConnectionNodeAwarePublisher {

    private final String connectionId;

    private final Long uniqueId;

    private final Subject subjectPortEvents;

    private final Subject subjectNodeEvents;

    public ConnectionNodeAwarePublisher(String connectionId, Long uniqueId, Subject subjectPortEvents,
        final Subject subjectNodeEvents) {
        this.connectionId = connectionId;
        this.uniqueId = uniqueId;
        this.subjectPortEvents = subjectPortEvents;
        this.subjectNodeEvents = subjectNodeEvents;
    }

    /**
     * @return the connectionId
     */
    public String getConnectionId() {
        return connectionId;
    }

    /**
     * @return the uniqueId
     */
    public Long getUniqueId() {
        return uniqueId;
    }

    /**
     * @return the subjectPortEvents
     */
    public Subject getSubjectPortEvents() {
        return subjectPortEvents;
    }

    /**
     * @return the subjectNodeEvents
     */
    public Subject getSubjectNodeEvents() {
        return subjectNodeEvents;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy