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 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 a CoolifyConfig record class.
      Parameters:
      apiUrl - the value for the apiUrl record component
      apiToken - the value for the apiToken record component
      resourceUuid - the value for the resourceUuid record component
      resourceName - the value for the resourceName record component
      healthUrl - the value for the healthUrl record component
      restartTimeoutSecs - the value for the restartTimeoutSecs record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • apiUrl

      @Bindable(defaultValue="") public String apiUrl()
      Returns the value of the apiUrl record component.
      Returns:
      the value of the apiUrl record component
    • apiToken

      @Bindable(defaultValue="") public String apiToken()
      Returns the value of the apiToken record component.
      Returns:
      the value of the apiToken record component
    • resourceUuid

      @Bindable(defaultValue="") public String resourceUuid()
      Returns the value of the resourceUuid record component.
      Returns:
      the value of the resourceUuid record component
    • resourceName

      @Bindable(defaultValue="") public String resourceName()
      Returns the value of the resourceName record component.
      Returns:
      the value of the resourceName record component
    • healthUrl

      @Bindable(defaultValue="") public String healthUrl()
      Returns the value of the healthUrl record component.
      Returns:
      the value of the healthUrl record component
    • restartTimeoutSecs

      @Bindable(defaultValue="120") public int restartTimeoutSecs()
      Returns the value of the restartTimeoutSecs record component.
      Returns:
      the value of the restartTimeoutSecs record component