Package com.io7m.cardant.server.api
Record Class CAServerConfiguration
java.lang.Object
java.lang.Record
com.io7m.cardant.server.api.CAServerConfiguration
- Record Components:
locale- The localeclock- The clockstrings- The string resourcesdatabases- The factory of databases that will be used for the serverdatabaseConfiguration- The database configuration for the serverinventoryApiConfiguration- The inventory API addressidstoreConfiguration- The idstore configurationlimitsConfiguration- The limits configurationmaintenanceConfiguration- The maintenance configurationopenTelemetry- The OpenTelemetry configuration
public record CAServerConfiguration(Locale locale, Clock clock, CAStrings strings, CADatabaseFactoryType databases, CADatabaseConfiguration databaseConfiguration, CAServerHTTPServiceConfiguration inventoryApiConfiguration, CAServerIdstoreConfiguration idstoreConfiguration, CAServerLimitsConfiguration limitsConfiguration, CAServerMaintenanceConfiguration maintenanceConfiguration, Optional<CAServerOpenTelemetryConfiguration> openTelemetry)
extends Record
The configuration for a server.
-
Constructor Summary
ConstructorsConstructorDescriptionCAServerConfiguration(Locale locale, Clock clock, CAStrings strings, CADatabaseFactoryType databases, CADatabaseConfiguration databaseConfiguration, CAServerHTTPServiceConfiguration inventoryApiConfiguration, CAServerIdstoreConfiguration idstoreConfiguration, CAServerLimitsConfiguration limitsConfiguration, CAServerMaintenanceConfiguration maintenanceConfiguration, Optional<CAServerOpenTelemetryConfiguration> openTelemetry) The configuration for a server. -
Method Summary
Modifier and TypeMethodDescriptionclock()Returns the value of theclockrecord component.Returns the value of thedatabaseConfigurationrecord component.Returns the value of thedatabasesrecord 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 theidstoreConfigurationrecord component.Returns the value of theinventoryApiConfigurationrecord component.Returns the value of thelimitsConfigurationrecord component.locale()Returns the value of thelocalerecord component.Returns the value of themaintenanceConfigurationrecord component.Returns the value of theopenTelemetryrecord component.strings()Returns the value of thestringsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAServerConfiguration
public CAServerConfiguration(Locale locale, Clock clock, CAStrings strings, CADatabaseFactoryType databases, CADatabaseConfiguration databaseConfiguration, CAServerHTTPServiceConfiguration inventoryApiConfiguration, CAServerIdstoreConfiguration idstoreConfiguration, CAServerLimitsConfiguration limitsConfiguration, CAServerMaintenanceConfiguration maintenanceConfiguration, Optional<CAServerOpenTelemetryConfiguration> openTelemetry) The configuration for a server.- Parameters:
locale- The localeclock- The clockstrings- The string resourcesdatabases- The factory of databases that will be used for the serverdatabaseConfiguration- The database configuration for the serverinventoryApiConfiguration- The inventory API addressidstoreConfiguration- The idstore configurationlimitsConfiguration- The limits configurationmaintenanceConfiguration- The maintenance configurationopenTelemetry- The OpenTelemetry configuration
-
-
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 withObjects::equals(Object,Object). -
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
clock
Returns the value of theclockrecord component.- Returns:
- the value of the
clockrecord component
-
strings
Returns the value of thestringsrecord component.- Returns:
- the value of the
stringsrecord component
-
databases
Returns the value of thedatabasesrecord component.- Returns:
- the value of the
databasesrecord component
-
databaseConfiguration
Returns the value of thedatabaseConfigurationrecord component.- Returns:
- the value of the
databaseConfigurationrecord component
-
inventoryApiConfiguration
Returns the value of theinventoryApiConfigurationrecord component.- Returns:
- the value of the
inventoryApiConfigurationrecord component
-
idstoreConfiguration
Returns the value of theidstoreConfigurationrecord component.- Returns:
- the value of the
idstoreConfigurationrecord component
-
limitsConfiguration
Returns the value of thelimitsConfigurationrecord component.- Returns:
- the value of the
limitsConfigurationrecord component
-
maintenanceConfiguration
Returns the value of themaintenanceConfigurationrecord component.- Returns:
- the value of the
maintenanceConfigurationrecord component
-
openTelemetry
Returns the value of theopenTelemetryrecord component.- Returns:
- the value of the
openTelemetryrecord component
-