Updated on 2024-05-07 GMT+08:00

ChainedCommonStreamBuilder

ChainedCommonStreamBuilder is an API class provided by the GaussDB JDBC driver. It is used to specify common parameters for logical and physical replication.

Inheritance Relationship of ChainedCommonStreamBuilder

ChainedCommonStreamBuilder is an API for logical replication. The implementation abstract class is AbstractCreateSlotBuilder. The inheritance class is LogicalCreateSlotBuilder which is in the org.postgresql.replication.fluent.logical package. The declaration of this class is as follows:

public class LogicalCreateSlotBuilder
    extends AbstractCreateSlotBuilder<ChainedLogicalCreateSlotBuilder>
    implements ChainedLogicalCreateSlotBuilder

Constructor Method

public LogicalCreateSlotBuilder(BaseConnection connection)

Common Methods

Table 1 Common methods of LogicalCreateSlotBuilder

Return Value

Method

Description

throws

T

withSlotName(String slotName)

Specifies the name of a replication slot.

-

ChainedLogicalCreateSlotBuilder

withOutputPlugin(String outputPlugin)

Plug-in name. Currently, mppdb_decoding is supported.

-

void

make()

Creates a slot with the specified parameters in the database.

SQLException

ChainedLogicalCreateSlotBuilder

self()

Returns the implementation of ChainedLogicalCreateSlotBuilder.

-