Record Class CosIdProperties.Static
java.lang.Object
java.lang.Record
me.ahoo.cosid.spring.autoconfigure.CosIdProperties.Static
- Record Components:
bits- the slot bits; default 10slot- the slotstateFile- the window file; none means no clock regression protection across restartsahead- how far ahead the window ceiling is written; default 10snotBefore- the floor while the state file does not exist yet (given by the migration tool)
- Enclosing class:
CosIdProperties
public static record CosIdProperties.Static(int bits, Integer slot, Path stateFile, Duration ahead, Instant notBefore)
extends Record
A slot the deployment keeps unique.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionahead()Returns the value of theaheadrecord component.intbits()Returns the value of thebitsrecord 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 thenotBeforerecord component.slot()Returns the value of theslotrecord component.Returns the value of thestateFilerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
bits
public int bits()Returns the value of thebitsrecord component.- Returns:
- the value of the
bitsrecord component
-
slot
Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
stateFile
Returns the value of thestateFilerecord component.- Returns:
- the value of the
stateFilerecord component
-
ahead
Returns the value of theaheadrecord component.- Returns:
- the value of the
aheadrecord component
-
notBefore
Returns the value of thenotBeforerecord component.- Returns:
- the value of the
notBeforerecord component
-