java.lang.Object
org.neo4j.driver.QueryConfig
- All Implemented Interfaces:
Serializable
Query configuration used by
Driver.executableQuery(String)
and its variants.- Since:
- 5.5
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder used to configureQueryConfig
which will be used to execute a query. -
Method Summary
Modifier and TypeMethodDescriptionbookmarkManager
(BookmarkManager defaultBookmarkManager) Returns bookmark manager for the query.static QueryConfig.Builder
builder()
Creates a newQueryConfig.Builder
used to construct a configuration object with default implementation returningEagerResult
.database()
Returns target database for the query.static QueryConfig
Returns default config value.boolean
int
hashCode()
Returns impersonated user for the query.metadata()
Get the configured transaction metadata.routing()
Returns routing mode for the query.timeout()
Get the configured transaction timeout.toString()
-
Method Details
-
defaultConfig
Returns default config value.- Returns:
- config value
-
builder
Creates a newQueryConfig.Builder
used to construct a configuration object with default implementation returningEagerResult
.- Returns:
- a query configuration builder
-
routing
Returns routing mode for the query.- Returns:
- routing mode
-
database
Returns target database for the query.- Returns:
- target database
-
impersonatedUser
Returns impersonated user for the query.- Returns:
- impersonated user
-
bookmarkManager
Returns bookmark manager for the query.- Parameters:
defaultBookmarkManager
- default bookmark manager to use when none has been configured explicitly,- Returns:
- bookmark manager
-
timeout
Get the configured transaction timeout.- Returns:
- an
Optional
containing the configured timeout orOptional.empty()
otherwise - Since:
- 5.16
-
metadata
Get the configured transaction metadata.- Returns:
- metadata or empty map when it is not configured
- Since:
- 5.16
-
equals
-
hashCode
public int hashCode() -
toString
-