Record Class LookupOptions
java.lang.Object
java.lang.Record
org.j7m.middleware.api.LookupOptions
- Record Components:
registryContext- registry context to queryrequiredParams- required metadata key/value pairsdeadline- operation deadline durationpreferLocal- whether local instances should be preferredhighAvailability- whether lookup should return an HA proxy where possible
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeadline()Returns the value of thedeadlinerecord component.static LookupOptionsdefaults()Returns default lookup options.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehighAvailabilityrecord component.static LookupOptionsReturns default HA lookup options.booleanReturns the value of thepreferLocalrecord component.Returns the value of theregistryContextrecord component.Returns the value of therequiredParamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LookupOptions
-
-
Method Details
-
defaults
-
highAvailabilityOptions
Returns default HA lookup options.- Returns:
- HA lookup options
-
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. -
registryContext
Returns the value of theregistryContextrecord component.- Returns:
- the value of the
registryContextrecord component
-
requiredParams
Returns the value of therequiredParamsrecord component.- Returns:
- the value of the
requiredParamsrecord component
-
deadline
-
preferLocal
public boolean preferLocal()Returns the value of thepreferLocalrecord component.- Returns:
- the value of the
preferLocalrecord component
-
highAvailability
public boolean highAvailability()Returns the value of thehighAvailabilityrecord component.- Returns:
- the value of the
highAvailabilityrecord component
-