org.postgresql.replication.fluent.ReplicationCreateSlotBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of postgresql Show documentation
Show all versions of postgresql Show documentation
PostgreSQL JDBC Driver Postgresql
/*
* Copyright (c) 2016, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package org.postgresql.replication.fluent;
import org.postgresql.core.BaseConnection;
import org.postgresql.replication.fluent.logical.ChainedLogicalCreateSlotBuilder;
import org.postgresql.replication.fluent.logical.LogicalCreateSlotBuilder;
import org.postgresql.replication.fluent.physical.ChainedPhysicalCreateSlotBuilder;
import org.postgresql.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);
}
}