Record Class BootstrapStatus
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.bootstrap.BootstrapStatus
- Record Components:
bootstrapRequired-truewhile the system is uninitialized and the bootstrap mechanism is enabledmode- currently configured bootstrap mode
Adapter-neutral, leak-safe view of the bootstrap state.
Intentionally never carries the bootstrap token value.
-
Constructor Summary
ConstructorsConstructorDescriptionBootstrapStatus(boolean bootstrapRequired, BootstrapMode mode) Creates an instance of aBootstrapStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebootstrapRequiredrecord component.final booleanIndicates whether some other object is "equal to" this one.static BootstrapStatusfrom(BootstrapStateService stateService) final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BootstrapStatus
Creates an instance of aBootstrapStatusrecord class.- Parameters:
bootstrapRequired- the value for thebootstrapRequiredrecord componentmode- the value for themoderecord component
-
-
Method Details
-
from
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
bootstrapRequired
public boolean bootstrapRequired()Returns the value of thebootstrapRequiredrecord component.- Returns:
- the value of the
bootstrapRequiredrecord component
-
mode
-