Class Client.Settings.Builder
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.driver.Client.Settings.Builder
-
- Enclosing class:
- Client.Settings
public static class Client.Settings.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Client.Settings
create()
Client.Settings.Builder
useSession(boolean enabled)
Enables a session.Client.Settings.Builder
useSession(String sessionId)
Enables a session.Client.Settings.Builder
useSession(Client.SessionSettings settings)
Enables a session.
-
-
-
Method Detail
-
useSession
public Client.Settings.Builder useSession(boolean enabled)
Enables a session. By default this will create a random session name and configure transactions to be unmanaged. This method will override settings provided by calls to the other overloads ofuseSession
.
-
useSession
public Client.Settings.Builder useSession(String sessionId)
Enables a session. By default this will create a session with the provided name and configure transactions to be unmanaged. This method will override settings provided by calls to the other overloads ofuseSession
.
-
useSession
public Client.Settings.Builder useSession(Client.SessionSettings settings)
Enables a session. This method will override settings provided by calls to the other overloads ofuseSession
.
-
create
public Client.Settings create()
-
-