Record Class PowersyncNukeConfig
java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.comum.config.PowersyncNukeConfig
- Record Components:
confirmationToken- token de confirmação; vazio (default) desabilita o endpoint (503).bootstrapWaitSecs- espera default, em segundos, antes de amostrar o pós-reset (default 60).
@ConfigurationProperties("powersync.nuke")
public record PowersyncNukeConfig(String confirmationToken, int bootstrapWaitSecs)
extends Record
Configuração da confirmação e do bootstrap do reset destrutivo — prefixo
powersync.nuke.* (contrato preservado do rename Nuke→ResetarPowersync; lido por
integrações). Binding relaxado: POWERSYNC_NUKE_CONFIRMATION_TOKEN →
confirmationToken(), POWERSYNC_NUKE_BOOTSTRAP_WAIT_SECS →
bootstrapWaitSecs().-
Constructor Summary
ConstructorsConstructorDescriptionPowersyncNukeConfig(String confirmationToken, int bootstrapWaitSecs) Creates an instance of aPowersyncNukeConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebootstrapWaitSecsrecord component.Returns the value of theconfirmationTokenrecord 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.
-
Constructor Details
-
PowersyncNukeConfig
public PowersyncNukeConfig(@Bindable(defaultValue="") String confirmationToken, @Bindable(defaultValue="60") int bootstrapWaitSecs) Creates an instance of aPowersyncNukeConfigrecord class.- Parameters:
confirmationToken- the value for theconfirmationTokenrecord componentbootstrapWaitSecs- the value for thebootstrapWaitSecsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
confirmationToken
Returns the value of theconfirmationTokenrecord component.- Returns:
- the value of the
confirmationTokenrecord component
-
bootstrapWaitSecs
@Bindable(defaultValue="60") public int bootstrapWaitSecs()Returns the value of thebootstrapWaitSecsrecord component.- Returns:
- the value of the
bootstrapWaitSecsrecord component
-