com.amazon.redshift.replication.fluent.ReplicationCreateSlotBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jdbc42 Show documentation
Show all versions of redshift-jdbc42 Show documentation
Java JDBC 4.2 (JRE 8+) driver for Redshift database
The newest version!
/*
* Copyright (c) 2016, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package com.amazon.redshift.replication.fluent;
import com.amazon.redshift.core.BaseConnection;
import com.amazon.redshift.replication.fluent.logical.ChainedLogicalCreateSlotBuilder;
import com.amazon.redshift.replication.fluent.logical.LogicalCreateSlotBuilder;
import com.amazon.redshift.replication.fluent.physical.ChainedPhysicalCreateSlotBuilder;
import com.amazon.redshift.replication.fluent.physical.PhysicalCreateSlotBuilder;
public class ReplicationCreateSlotBuilder implements ChainedCreateReplicationSlotBuilder {
private final BaseConnection baseConnection;
public ReplicationCreateSlotBuilder(BaseConnection baseConnection) {
this.baseConnection = baseConnection;
}
@Override
public ChainedLogicalCreateSlotBuilder logical() {
return new LogicalCreateSlotBuilder(baseConnection);
}
@Override
public ChainedPhysicalCreateSlotBuilder physical() {
return new PhysicalCreateSlotBuilder(baseConnection);
}
}