Record Class RuntimeConfiguration
java.lang.Object
java.lang.Record
org.j7m.middleware.core.RuntimeConfiguration
- Record Components:
identity- runtime identityregistry- registry client owned by the runtimecodec- value codectransports- transport providers owned by the runtimeclock- runtime clocksecurity- security configuration
public record RuntimeConfiguration(org.j7m.middleware.api.RuntimeIdentity identity, org.j7m.middleware.registry.api.RegistryClient registry, org.j7m.middleware.codec.api.ValueCodec codec, List<org.j7m.middleware.transport.api.TransportProvider> transports, Clock clock, org.j7m.middleware.security.api.SecurityConfiguration security)
extends Record
Immutable construction configuration for
DefaultMiddlewareRuntime.-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeConfiguration(org.j7m.middleware.api.RuntimeIdentity identity, org.j7m.middleware.registry.api.RegistryClient registry, org.j7m.middleware.codec.api.ValueCodec codec, List<org.j7m.middleware.transport.api.TransportProvider> transports, Clock clock, org.j7m.middleware.security.api.SecurityConfiguration security) Creates immutable configuration fields. -
Method Summary
Modifier and TypeMethodDescriptionclock()Returns the value of theclockrecord component.org.j7m.middleware.codec.api.ValueCodeccodec()Returns the value of thecodecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.j7m.middleware.api.RuntimeIdentityidentity()Returns the value of theidentityrecord component.static org.j7m.middleware.api.RuntimeIdentityCreates an identity with generated metadata.org.j7m.middleware.registry.api.RegistryClientregistry()Returns the value of theregistryrecord component.org.j7m.middleware.security.api.SecurityConfigurationsecurity()Returns the value of thesecurityrecord component.final StringtoString()Returns a string representation of this record class.List<org.j7m.middleware.transport.api.TransportProvider> Returns the value of thetransportsrecord component.
-
Constructor Details
-
RuntimeConfiguration
public RuntimeConfiguration(org.j7m.middleware.api.RuntimeIdentity identity, org.j7m.middleware.registry.api.RegistryClient registry, org.j7m.middleware.codec.api.ValueCodec codec, List<org.j7m.middleware.transport.api.TransportProvider> transports, Clock clock, org.j7m.middleware.security.api.SecurityConfiguration security) Creates immutable configuration fields.
-
-
Method Details
-
identity
Creates an identity with generated metadata.- Parameters:
runtimeId- runtime identifier- Returns:
- runtime identity
-
toString
-
hashCode
-
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). -
identity
-
registry
-
codec
-
transports
Returns the value of thetransportsrecord component.- Returns:
- the value of the
transportsrecord component
-
clock
-
security
-