Record Class NuggetDiscovery.Query
java.lang.Object
java.lang.Record
org.j7m.middleware.operations.api.NuggetDiscovery.Query
- Record Components:
includeStale- whether stale records may be returned as stale hintslimit- maximum result count, from 1 throughNuggetDiscovery.MAX_RESULTScorrelationId- safe audit correlation id
- Enclosing class:
NuggetDiscovery
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NuggetDiscovery.Queryactive()Returns the default active-record query.Returns the value of thecorrelationIdrecord component.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 theincludeStalerecord component.intlimit()Returns the value of thelimitrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Query
Creates a bounded discovery query.
-
-
Method Details
-
active
Returns the default active-record query.- Returns:
- default query
-
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. -
includeStale
public boolean includeStale()Returns the value of theincludeStalerecord component.- Returns:
- the value of the
includeStalerecord component
-
limit
-
correlationId
Returns the value of thecorrelationIdrecord component.- Returns:
- the value of the
correlationIdrecord component
-