Record Class LoadBalancerHandler.Verdict
java.lang.Object
java.lang.Record
com.iizix.server.loadbalancer.LoadBalancerHandler.Verdict
- Record Components:
ok- true when admitted.reason- The refusal reason, null when admitted.warnings- What the principal warned about:def,keys; empty when nothing.entry- The admitted member, null when refused.
- Enclosing class:
LoadBalancerHandler
public static record LoadBalancerHandler.Verdict(boolean ok, String reason, List<String> warnings, LoadBalancerHandler.Entry entry) extends Record
The outcome of a registration.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionVerdict(boolean ok, String reason, List<String> warnings, LoadBalancerHandler.Entry entry) Creates an instance of aVerdictrecord class.Method Summary
Modifier and TypeMethodDescriptionentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanok()Returns the value of theokrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.
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.ok
reason
warnings
entry