Class ClusterComposition

java.lang.Object
org.neo4j.driver.internal.cluster.ClusterComposition

public final class ClusterComposition extends Object
  • Constructor Details

    • ClusterComposition

      public ClusterComposition(long expirationTimestamp, Set<org.neo4j.driver.internal.BoltServerAddress> readers, Set<org.neo4j.driver.internal.BoltServerAddress> writers, Set<org.neo4j.driver.internal.BoltServerAddress> routers, String databaseName)
      For testing
  • Method Details

    • hasWriters

      public boolean hasWriters()
    • hasRoutersAndReaders

      public boolean hasRoutersAndReaders()
    • readers

      public Set<org.neo4j.driver.internal.BoltServerAddress> readers()
    • writers

      public Set<org.neo4j.driver.internal.BoltServerAddress> writers()
    • routers

      public Set<org.neo4j.driver.internal.BoltServerAddress> routers()
    • expirationTimestamp

      public long expirationTimestamp()
    • databaseName

      public String databaseName()
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public static ClusterComposition parse(Record record, long now)