Record Class LoginVerdict
java.lang.Object
java.lang.Record
com.iizix.server.loadbalancer.LoginVerdict
- Record Components:
kind- The kind.until- The grace deadline forLoginVerdict.Kind.WARN, epoch milliseconds; 0 otherwise.message- The message forLoginVerdict.Kind.WARNandLoginVerdict.Kind.REFUSE, null forLoginVerdict.Kind.ALLOW.
What
IHubLicence.onLogin(String, long, String, boolean) answers, LICENSE-V2-DESIGN.md section 13: allow; allow with a warning and a grace deadline (R-6 (b)); refuse with a message.- Author:
- Christopher Mindus
Nested Class Summary
Nested ClassesField Summary
FieldsModifier and TypeFieldDescriptionstatic final LoginVerdictThe one verdict that allows without a word.Constructor Summary
ConstructorsConstructorDescriptionLoginVerdict(LoginVerdict.Kind kind, long until, String message) Creates an instance of aLoginVerdictrecord class.Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.longuntil()Returns the value of theuntilrecord component.
Field Details
ALLOW
The one verdict that allows without a word.
Constructor Details
Method Details
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.kind
until
message