-
@Serializable() public final class RegistrationSettingsPer-sdk-type settings served in the register response's
configSettings(keyed by the server-resolved sdk type). Parsed leniently: a malformed or missing block must never fail registration — guardrails fall back to the hardcoded defaults in GuardrailConfig, the connection policy to the defaults in ConnectionPolicy.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRegistrationSettings.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Doublewebsocket_timeout_secondsprivate final Doubledevice_timeout_interval_secondsprivate final GuardrailConfigguardrailsprivate final JsonElementconnection
-
Constructor Summary
Constructors Constructor Description RegistrationSettings(Double websocket_timeout_seconds, Double device_timeout_interval_seconds, GuardrailConfig guardrails, JsonElement connection)
-
Method Summary
Modifier and Type Method Description final DoublegetWebsocket_timeout_seconds()final DoublegetDevice_timeout_interval_seconds()final GuardrailConfiggetGuardrails()final JsonElementgetConnection()The server-driven connectionpolicy block (CONNECTION_POLICY_DESIGN.md §2).final ConnectionPolicyconnectionPolicy()Lenient, clamped parse of the connectionblock; null when absent/malformed.-
-
Constructor Detail
-
RegistrationSettings
RegistrationSettings(Double websocket_timeout_seconds, Double device_timeout_interval_seconds, GuardrailConfig guardrails, JsonElement connection)
-
-
Method Detail
-
getWebsocket_timeout_seconds
final Double getWebsocket_timeout_seconds()
-
getDevice_timeout_interval_seconds
final Double getDevice_timeout_interval_seconds()
-
getGuardrails
final GuardrailConfig getGuardrails()
-
getConnection
final JsonElement getConnection()
The server-driven
connectionpolicy block (CONNECTION_POLICY_DESIGN.md §2). Kept as a raw element so a malformed block degrades to the policy defaults without discarding the sibling guardrails; resolve it through connectionPolicy.
-
connectionPolicy
final ConnectionPolicy connectionPolicy()
Lenient, clamped parse of the
connectionblock; null when absent/malformed.
-
-
-
-