Record Class CoolifyConfig
java.lang.Object
java.lang.Record
br.com.vantroba.bi.transporte.comum.config.CoolifyConfig
- Record Components:
apiUrl- URL da API do Coolify.apiToken- token da API do Coolify.resourceUuid- UUID do recurso PowerSync no Coolify.resourceName- nome do recurso PowerSync (alternativa ao UUID).healthUrl- URL de health do PowerSync para o polling pós-restart.restartTimeoutSecs- timeout em segundos do polling do deployment (default 120).
@ConfigurationProperties("powersync.admin.coolify")
public record CoolifyConfig(String apiUrl, String apiToken, String resourceUuid, String resourceName, String healthUrl, int restartTimeoutSecs)
extends Record
Configuração do restart automático do PowerSync via API do Coolify — prefixo
powersync.admin.coolify.*. Vazio (default) significa restart manual. Binding
relaxado: api-url → apiUrl(), restart-timeout-secs →
restartTimeoutSecs().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiToken()Returns the value of theapiTokenrecord component.apiUrl()Returns the value of theapiUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehealthUrlrecord component.Returns the value of theresourceNamerecord component.Returns the value of theresourceUuidrecord component.intReturns the value of therestartTimeoutSecsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CoolifyConfig
public CoolifyConfig(@Bindable(defaultValue="") String apiUrl, @Bindable(defaultValue="") String apiToken, @Bindable(defaultValue="") String resourceUuid, @Bindable(defaultValue="") String resourceName, @Bindable(defaultValue="") String healthUrl, @Bindable(defaultValue="120") int restartTimeoutSecs) Creates an instance of aCoolifyConfigrecord class.- Parameters:
apiUrl- the value for theapiUrlrecord componentapiToken- the value for theapiTokenrecord componentresourceUuid- the value for theresourceUuidrecord componentresourceName- the value for theresourceNamerecord componenthealthUrl- the value for thehealthUrlrecord componentrestartTimeoutSecs- the value for therestartTimeoutSecsrecord 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. -
apiUrl
-
apiToken
-
resourceUuid
Returns the value of theresourceUuidrecord component.- Returns:
- the value of the
resourceUuidrecord component
-
resourceName
Returns the value of theresourceNamerecord component.- Returns:
- the value of the
resourceNamerecord component
-
healthUrl
-
restartTimeoutSecs
@Bindable(defaultValue="120") public int restartTimeoutSecs()Returns the value of therestartTimeoutSecsrecord component.- Returns:
- the value of the
restartTimeoutSecsrecord component
-