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

io.leoplatform.sdk.oracle.SimpleOracleChangeDestination Maven / Gradle / Ivy

There is a newer version: 1.0.10
Show newest version
package io.leoplatform.sdk.oracle;

import io.leoplatform.schema.ChangeDestination;
import io.leoplatform.sdk.changes.SimpleChangeListener;

import java.util.Properties;

public final class SimpleOracleChangeDestination implements OracleChangeDestination {

    private final ChangeDestination changeListener;
    private final Properties props;

    public SimpleOracleChangeDestination() {
        this(new SimpleChangeListener());
    }

    public SimpleOracleChangeDestination(ChangeDestination changeListener) {
        this(changeListener, new Properties());
    }

    public SimpleOracleChangeDestination(ChangeDestination changeListener, Properties props) {
        this.changeListener = changeListener;
        this.props = props;
    }

    @Override
    public String getHost() {
        return changeListener.getHost();
    }

    @Override
    public Integer getPort() {
        return changeListener.getPort();
    }

    @Override
    public Properties getProps() {
        return props;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy