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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebookmarks
record component.Returns the value of thedatabaseName
record component.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for this object.Returns the value of theimpersonatedUser
record component.Returns the value of theroutingContext
record component.byte
toString()
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 benull
for 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 theroutingContext
record component.- Returns:
- the value of the
routingContext
record component
-
bookmarks
Returns the value of thebookmarks
record component.- Returns:
- the value of the
bookmarks
record component
-
databaseName
Returns the value of thedatabaseName
record component.- Returns:
- the value of the
databaseName
record component
-
impersonatedUser
Returns the value of theimpersonatedUser
record component.- Returns:
- the value of the
impersonatedUser
record component
-