java.lang.Object
java.lang.Record
org.neo4j.driver.internal.cluster.RoutingSettings
public record RoutingSettings(long routingTablePurgeDelayMs, RoutingContext routingContext)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRoutingSettings(long routingTablePurgeDelayMs, RoutingContext routingContext) Creates an instance of aRoutingSettingsrecord 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.Returns the value of theroutingContextrecord component.longReturns the value of theroutingTablePurgeDelayMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STALE_ROUTING_TABLE_PURGE_DELAY_MS
public static final long STALE_ROUTING_TABLE_PURGE_DELAY_MS
-
-
Constructor Details
-
RoutingSettings
Creates an instance of aRoutingSettingsrecord class.- Parameters:
routingTablePurgeDelayMs- the value for theroutingTablePurgeDelayMsrecord componentroutingContext- the value for theroutingContextrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
routingTablePurgeDelayMs
public long routingTablePurgeDelayMs()Returns the value of theroutingTablePurgeDelayMsrecord component.- Returns:
- the value of the
routingTablePurgeDelayMsrecord component
-
routingContext
Returns the value of theroutingContextrecord component.- Returns:
- the value of the
routingContextrecord component
-