Record Class PowersyncMongoConfig
java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.comum.config.PowersyncMongoConfig
- Record Components:
uri- URI de conexão do Mongo do PowerSync (o nome do database viaja embutido no path, salvo override).database- override opcional do nome do database; vazio (default) deriva dauri().
@ConfigurationProperties("powersync.mongodb")
public record PowersyncMongoConfig(String uri, String database)
extends Record
Configuração do MongoDB do PowerSync usada no reset da replicação — prefixo
powersync.mongodb.*. Binding relaxado: POWERSYNC_MONGODB_URI →
uri(), POWERSYNC_MONGODB_DATABASE → database().-
Constructor Summary
ConstructorsConstructorDescriptionPowersyncMongoConfig(String uri, String database) Creates an instance of aPowersyncMongoConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondatabase()Returns the value of thedatabaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
PowersyncMongoConfig
-
-
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). -
uri
-
database
-