public class SessionConfig extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SessionConfig.Builder
Builder used to configure
SessionConfig which will be used to create a session. |
Modifier and Type | Method and Description |
---|---|
Iterable<Bookmark> |
bookmarks()
Returns the initial bookmarks.
|
static SessionConfig.Builder |
builder()
Creates a new
SessionConfig.Builder used to construct a configuration object. |
Optional<String> |
database()
The database where the session is going to connect to.
|
AccessMode |
defaultAccessMode()
The type of access required by units of work in this session,
e.g.
|
static SessionConfig |
defaultConfig()
Returns a static
SessionConfig with default values for a general purpose session. |
boolean |
equals(Object o) |
Optional<Long> |
fetchSize()
This value if set, overrides the default fetch size set on
Config.fetchSize() . |
static SessionConfig |
forDatabase(String database)
Returns a
SessionConfig for the specified database |
int |
hashCode() |
Optional<String> |
impersonatedUser()
The impersonated user the session is going to use for query execution.
|
String |
toString() |
public static SessionConfig.Builder builder()
SessionConfig.Builder
used to construct a configuration object.public static SessionConfig defaultConfig()
SessionConfig
with default values for a general purpose session.public static SessionConfig forDatabase(String database)
SessionConfig
for the specified databasedatabase
- the database the session binds to.public Iterable<Bookmark> bookmarks()
SessionConfig
will ensure that server hosting is at least as up-to-date as the
latest transaction referenced by the supplied initial bookmarks.public AccessMode defaultAccessMode()
read access
or write access
.public Optional<String> database()
public Optional<Long> fetchSize()
Config.fetchSize()
.public Optional<String> impersonatedUser()