java.lang.Object
org.neo4j.driver.internal.messaging.request.RouteMessage
All Implemented Interfaces:
Message

public class RouteMessage extends Object 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 Details

  • 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 be null for non-impersonated requests
  • Method Details

    • getRoutingContext

      public Map<String,Value> getRoutingContext()
    • getBookmarks

      public Set<Bookmark> getBookmarks()
    • getDatabaseName

      public String getDatabaseName()
    • getImpersonatedUser

      public String getImpersonatedUser()
    • signature

      public byte signature()
      Specified by:
      signature in interface Message
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object