java.lang.Object
org.neo4j.driver.SessionConfig
- All Implemented Interfaces:
Serializable
The session configurations used to configure a session.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder used to configureSessionConfigwhich will be used to create a session. -
Method Summary
Modifier and TypeMethodDescriptionABookmarkManagerimplementation for the session to use.Returns the initial bookmarks.static SessionConfig.Builderbuilder()Creates a newSessionConfig.Builderused to construct a configuration object.database()The database where the session is going to connect to.The type of access required by units of work in this session, e.g.static SessionConfigReturns a staticSessionConfigwith default values for a general purpose session.Returns a set of disabled notification classifications.booleanThis value if set, overrides the default fetch size set onConfig.fetchSize().static SessionConfigforDatabase(String database) Returns aSessionConfigfor the specified databaseinthashCode()The impersonated user the session is going to use for query execution.Returns a minimum notification severity.Deprecated.toString()
-
Method Details
-
builder
Creates a newSessionConfig.Builderused to construct a configuration object.- Returns:
- a session configuration builder.
-
defaultConfig
Returns a staticSessionConfigwith default values for a general purpose session.- Returns:
- a session config for a general purpose session.
-
forDatabase
Returns aSessionConfigfor the specified database- Parameters:
database- the database the session binds to.- Returns:
- a session config for a session for the specified database.
-
bookmarks
Returns the initial bookmarks. First transaction in the session created with thisSessionConfigwill ensure that server hosting is at least as up-to-date as the latest transaction referenced by the supplied initial bookmarks.- Returns:
- the initial bookmarks.
-
defaultAccessMode
The type of access required by units of work in this session, e.g.read accessorwrite access.- Returns:
- the access mode.
-
database
The database where the session is going to connect to.- Returns:
- the nullable database name where the session is going to connect to.
-
fetchSize
This value if set, overrides the default fetch size set onConfig.fetchSize().- Returns:
- an optional value of fetch size.
-
impersonatedUser
The impersonated user the session is going to use for query execution.- Returns:
- an optional value of the impersonated user.
-
bookmarkManager
ABookmarkManagerimplementation for the session to use.- Returns:
- bookmark implementation
-
notificationConfig
Deprecated.superseded byminimumNotificationSeverity()anddisabledNotificationClassifications().Returns notification config.- Returns:
- the notification config
- Since:
- 5.7
-
minimumNotificationSeverity
Returns a minimum notification severity.- Returns:
- an
Optionalof minimumNotificationSeverityor an emptyOptionalif it is not set - Since:
- 5.22.0
-
disabledNotificationClassifications
Returns a set of disabled notification classifications.- Returns:
- the
Setof disabledNotificationClassification - Since:
- 5.22.0
-
equals
-
hashCode
public int hashCode() -
toString
-
minimumNotificationSeverity()anddisabledNotificationClassifications().