Record Class DbSchedulerUiProperties
java.lang.Object
java.lang.Record
no.bekk.dbscheduler.uistarter.config.DbSchedulerUiProperties
- Record Components:
enabled- whether the UI auto-configuration is activereadOnly- when true, disables mutating endpoints (rerun, delete, reschedule)taskData- whether to surface serialized task data in API responseshistory- 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 explicitLIMITclause, 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
ConstructorsConstructorDescriptionDbSchedulerUiProperties(boolean enabled, boolean readOnly, boolean taskData, boolean history, int logLimit) Creates an instance of aDbSchedulerUiPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhistory()Returns the value of thehistoryrecord component.intlogLimit()Returns the value of thelogLimitrecord component.booleanreadOnly()Returns the value of thereadOnlyrecord component.booleantaskData()Returns the value of thetaskDatarecord component.final StringtoString()Returns a string representation of this record class.
-
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 aDbSchedulerUiPropertiesrecord class.
-
-
Method Details
-
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. -
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. -
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 with '=='. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
readOnly
public boolean readOnly()Returns the value of thereadOnlyrecord component.- Returns:
- the value of the
readOnlyrecord component
-
taskData
public boolean taskData()Returns the value of thetaskDatarecord component.- Returns:
- the value of the
taskDatarecord component
-
history
public boolean history()Returns the value of thehistoryrecord component.- Returns:
- the value of the
historyrecord component
-
logLimit
public int logLimit()Returns the value of thelogLimitrecord component.- Returns:
- the value of the
logLimitrecord component
-