Module org.neo4j.driver
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 Summary
ConstructorsConstructorDescriptionProviderClosingBoltConnectionSource(org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters> delegate, org.neo4j.bolt.connection.BoltConnectionProvider provider) Creates an instance of aProviderClosingBoltConnectionSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionclose()org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters> delegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.CompletionStage<org.neo4j.bolt.connection.BoltConnection> CompletionStage<org.neo4j.bolt.connection.BoltConnection> getConnection(org.neo4j.bolt.connection.RoutedBoltConnectionParameters parameters) final inthashCode()Returns a hash code value for this object.org.neo4j.bolt.connection.BoltConnectionProviderprovider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aProviderClosingBoltConnectionSourcerecord class.- Parameters:
delegate- the value for thedelegaterecord componentprovider- the value for theproviderrecord component
-
-
Method Details
-
getConnection
- Specified by:
getConnectionin interfaceorg.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:
getConnectionin interfaceorg.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
-
verifyConnectivity
- Specified by:
verifyConnectivityin interfaceorg.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
-
supportsMultiDb
- Specified by:
supportsMultiDbin interfaceorg.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
-
supportsSessionAuth
- Specified by:
supportsSessionAuthin interfaceorg.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
-
close
- Specified by:
closein interfaceorg.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters>
-
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. -
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. -
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). -
delegate
public org.neo4j.bolt.connection.BoltConnectionSource<org.neo4j.bolt.connection.RoutedBoltConnectionParameters> delegate()Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-
provider
public org.neo4j.bolt.connection.BoltConnectionProvider provider()Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-