Driver Series | Java 8 | Java 11 |
---|---|---|
1.6 | X | X |
1.7 | X | X |
2.0 | X | X |
org.neo4j.driver
.pom.xml
filepom.xml
file:x.y.z
will need to be replaced with the appropriate driver version.It is generally recommended to use the latest driver version wherever possible.This ensures access to new features and recent bug fixes.All available versions of this driver can be found atMaven Central orReleases.Driver
object should be created with application-wide scope and lifetime.This allows full utilization of the driver connection pool.The connection pool reduces network overhead added by sharing TCP connections between subsequent transactions.Network connections are acquired on demand from the pool when running Cypher queries, and returned back to connection pool after query execution finishes.As a result of this design, it is expensive to create and close a Driver
object.Session
objects, on the other hand, are very cheap to use.Driver
objects are thread-safe, but Session
and Transaction
objects should only be used by a single thread.boltkit
installed on your local machine.If boltkit
is not installed, then all tests that requires boltkit
will be ignored and will not be executed.