Record Class PowersyncPostgresConfig
java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.comum.config.PowersyncPostgresConfig
- Record Components:
replicationSlot- slot configurado explicitamente; vazio (default) aciona auto-discover do slot ativo via metadados do Mongo.replicationPlugin- plugin de saída do slot lógico (defaultpgoutput).
@ConfigurationProperties("powersync.postgres")
public record PowersyncPostgresConfig(String replicationSlot, String replicationPlugin)
extends Record
Configuração da replicação Postgres do PowerSync usada no reset — prefixo
powersync.postgres.*. Binding relaxado: POWERSYNC_POSTGRES_REPLICATION_SLOT →
replicationSlot(), POWERSYNC_POSTGRES_REPLICATION_PLUGIN →
replicationPlugin().-
Constructor Summary
ConstructorsConstructorDescriptionPowersyncPostgresConfig(String replicationSlot, String replicationPlugin) Creates an instance of aPowersyncPostgresConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereplicationPluginrecord component.Returns the value of thereplicationSlotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PowersyncPostgresConfig
public PowersyncPostgresConfig(@Bindable(defaultValue="") String replicationSlot, @Bindable(defaultValue="pgoutput") String replicationPlugin) Creates an instance of aPowersyncPostgresConfigrecord class.- Parameters:
replicationSlot- the value for thereplicationSlotrecord componentreplicationPlugin- the value for thereplicationPluginrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
replicationSlot
Returns the value of thereplicationSlotrecord component.- Returns:
- the value of the
replicationSlotrecord component
-
replicationPlugin
Returns the value of thereplicationPluginrecord component.- Returns:
- the value of the
replicationPluginrecord component
-