Record Class ProviderClosingBoltConnectionSource

java.lang.Object
java.lang.Record
org.neo4j.driver.internal.adaptedbolt.ProviderClosingBoltConnectionSource
All Implemented Interfaces:
org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>

public record ProviderClosingBoltConnectionSource(org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters> delegate, org.neo4j.bolt.connection.BoltConnectionProvider provider) extends Record implements org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
  • Constructor Details

    • ProviderClosingBoltConnectionSource

      public ProviderClosingBoltConnectionSource(org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters> delegate, org.neo4j.bolt.connection.BoltConnectionProvider provider)
      Creates an instance of a ProviderClosingBoltConnectionSource record class.
      Parameters:
      delegate - the value for the delegate record component
      provider - the value for the provider record component
  • Method Details

    • getConnection

      public CompletionStage<org.neo4j.bolt.connection.BoltConnection> getConnection()
      Specified by:
      getConnection in interface org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
    • getConnection

      public CompletionStage<org.neo4j.bolt.connection.BoltConnection> getConnection(org.neo4j.bolt.connection.RoutedBoltConnectionParameters parameters)
      Specified by:
      getConnection in interface org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
    • verifyConnectivity

      public CompletionStage<Void> verifyConnectivity()
      Specified by:
      verifyConnectivity in interface org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
    • supportsMultiDb

      public CompletionStage<Boolean> supportsMultiDb()
      Specified by:
      supportsMultiDb in interface org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
    • supportsSessionAuth

      public CompletionStage<Boolean> supportsSessionAuth()
      Specified by:
      supportsSessionAuth in interface org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
    • close

      public CompletionStage<Void> close()
      Specified by:
      close in interface org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • delegate

      public org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters> delegate()
      Returns the value of the delegate record component.
      Returns:
      the value of the delegate record component
    • provider

      public org.neo4j.bolt.connection.BoltConnectionProvider provider()
      Returns the value of the provider record component.
      Returns:
      the value of the provider record component