public abstract class AbstractCreateSlotBuilder<T extends ChainedCommonCreateSlotBuilder<T>> extends Object implements ChainedCommonCreateSlotBuilder<T>
Modifier and Type | Field and Description |
---|---|
protected BaseConnection |
connection |
protected @Nullable String |
slotName |
protected boolean |
temporaryOption |
Modifier | Constructor and Description |
---|---|
protected |
AbstractCreateSlotBuilder(BaseConnection connection) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
self() |
T |
withSlotName(String slotName)
Replication slots provide an automated way to ensure that the master does not remove WAL
segments until they have been received by all standbys, and that the master does not remove
rows which could cause a recovery conflict even when the standby is disconnected.
|
T |
withTemporaryOption()
Temporary slots are not saved to disk and are automatically dropped on error or when
the session has finished.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
make
protected @Nullable String slotName
protected boolean temporaryOption
protected BaseConnection connection
protected AbstractCreateSlotBuilder(BaseConnection connection)
protected abstract T self()
public T withSlotName(String slotName)
ChainedCommonCreateSlotBuilder
withSlotName
in interface ChainedCommonCreateSlotBuilder<T extends ChainedCommonCreateSlotBuilder<T>>
slotName
- not null unique replication slot name for create.public T withTemporaryOption() throws SQLFeatureNotSupportedException
ChainedCommonCreateSlotBuilder
Temporary slots are not saved to disk and are automatically dropped on error or when the session has finished.
This feature is only supported by PostgreSQL versions >= 10.
withTemporaryOption
in interface ChainedCommonCreateSlotBuilder<T extends ChainedCommonCreateSlotBuilder<T>>
SQLFeatureNotSupportedException
- thrown if PostgreSQL version is less than 10.Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.