Record Class DbSchedulerUiProperties

java.lang.Object
java.lang.Record
no.bekk.dbscheduler.uistarter.config.DbSchedulerUiProperties
Record Components:
enabled - whether the UI auto-configuration is active
readOnly - when true, disables mutating endpoints (rerun, delete, reschedule)
taskData - whether to surface serialized task data in API responses
history - whether the UI exposes task execution history (requires the log writer)
logLimit - cap on the number of history rows fetched per request; 0 applies no explicit LIMIT clause, but the result set is still capped at 500 rows by the query layer

@ConfigurationProperties("db-scheduler-ui") public record DbSchedulerUiProperties(boolean enabled, boolean readOnly, boolean taskData, boolean history, int logLimit) extends Record
Configuration for the db-scheduler UI.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DbSchedulerUiProperties(boolean enabled, boolean readOnly, boolean taskData, boolean history, int logLimit)
    Creates an instance of a DbSchedulerUiProperties record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the enabled record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the history record component.
    int
    Returns the value of the logLimit record component.
    boolean
    Returns the value of the readOnly record component.
    boolean
    Returns the value of the taskData record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DbSchedulerUiProperties

      public DbSchedulerUiProperties(@DefaultValue("true") boolean enabled, @DefaultValue("false") boolean readOnly, @DefaultValue("true") boolean taskData, @DefaultValue("false") boolean history, @DefaultValue("0") int logLimit)
      Creates an instance of a DbSchedulerUiProperties record class.
      Parameters:
      enabled - the value for the enabled record component
      readOnly - the value for the readOnly record component
      taskData - the value for the taskData record component
      history - the value for the history record component
      logLimit - the value for the logLimit 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. All components in this record class are compared with '=='.
      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.
    • enabled

      public boolean enabled()
      Returns the value of the enabled record component.
      Returns:
      the value of the enabled record component
    • readOnly

      public boolean readOnly()
      Returns the value of the readOnly record component.
      Returns:
      the value of the readOnly record component
    • taskData

      public boolean taskData()
      Returns the value of the taskData record component.
      Returns:
      the value of the taskData record component
    • history

      public boolean history()
      Returns the value of the history record component.
      Returns:
      the value of the history record component
    • logLimit

      public int logLimit()
      Returns the value of the logLimit record component.
      Returns:
      the value of the logLimit record component