Record Class CosIdProperties.NamedMachine
java.lang.Object
java.lang.Record
me.ahoo.cosid.spring.autoconfigure.CosIdProperties.NamedMachine
- Record Components:
namespace- the namespace of the slot, required: every service sharing it uses the samebits,toleranceandslot-offsetleased- a slot leased from a storefixed- a slot the deployment keeps unique (cosid.machines.<name>.static)
- Enclosing class:
CosIdProperties
public static record CosIdProperties.NamedMachine(String namespace, CosIdProperties.Leased leased, CosIdProperties.Static fixed)
extends Record
A named machine slot (D37,
cosid.machines.<name>): exactly one of leased or static, in a
namespace of its own. Only the machines an enabled generator chooses (cosid.generators.<g>.machine) start.-
Constructor Summary
ConstructorsConstructorDescriptionNamedMachine(String namespace, CosIdProperties.Leased leased, CosIdProperties.Static fixed) Creates an instance of aNamedMachinerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fixed()Returns the value of thefixedrecord component.final inthashCode()Returns a hash code value for this object.leased()Returns the value of theleasedrecord component.Returns the value of thenamespacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NamedMachine
public NamedMachine(String namespace, CosIdProperties.Leased leased, @Name("static") CosIdProperties.Static fixed) Creates an instance of aNamedMachinerecord 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 withObjects::equals(Object,Object). -
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
leased
Returns the value of theleasedrecord component.- Returns:
- the value of the
leasedrecord component
-
fixed
Returns the value of thefixedrecord component.- Returns:
- the value of the
fixedrecord component
-