Module org.neo4j.driver
Record Class RouteMessage
java.lang.Object
java.lang.Record
org.neo4j.driver.internal.messaging.request.RouteMessage
- All Implemented Interfaces:
Message
public record RouteMessage(Map<String,Value> routingContext, Set<Bookmark> bookmarks, String databaseName, String impersonatedUser)
extends Record
implements Message
From the application point of view it is not interesting to know about the role a member plays in the cluster. Instead, the application needs to know which
instance can provide the wanted service.
This message is used to fetch this routing information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebookmarksrecord component.Returns the value of thedatabaseNamerecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.Returns the value of theimpersonatedUserrecord component.Returns the value of theroutingContextrecord component.bytetoString()Returns a string representation of this record class.
-
Field Details
-
SIGNATURE
public static final byte SIGNATURE- See Also:
-
-
Constructor Details
-
RouteMessage
public RouteMessage(Map<String, Value> routingContext, Set<Bookmark> bookmarks, String databaseName, String impersonatedUser) Constructor- Parameters:
routingContext- The routing context used to define the routing table. Multi-datacenter deployments is one of its use cases.bookmarks- The bookmarks used when getting the routing table.databaseName- The name of the database to get the routing table for.impersonatedUser- The name of the impersonated user to get the routing table for, should benullfor non-impersonated requests
-
-
Method Details
-
signature
public byte signature() -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
routingContext
Returns the value of theroutingContextrecord component.- Returns:
- the value of the
routingContextrecord component
-
bookmarks
Returns the value of thebookmarksrecord component.- Returns:
- the value of the
bookmarksrecord component
-
databaseName
Returns the value of thedatabaseNamerecord component.- Returns:
- the value of the
databaseNamerecord component
-
impersonatedUser
Returns the value of theimpersonatedUserrecord component.- Returns:
- the value of the
impersonatedUserrecord component
-