org.apache.tinkerpop.gremlin.driver

## 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 and Description
    --- | ---
    `Client.Settings` | `create()`
    `Client.Settings.Builder` | `useSession(boolean enabled)` Enables a session.
    `Client.Settings.Builder` | `useSession(Client.SessionSettings settings)` Enables a session.
    `Client.Settings.Builder` | `useSession(String sessionId)` Enables a session.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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 of `useSession`.

    - #### 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 of `useSession`.

    - #### useSession

          public Client.Settings.Builder useSession(Client.SessionSettings settings)

      Enables a session. This method will override settings provided by calls to the other overloads of `useSession`.

    - #### create

          public Client.Settings create()

Copyright © 2013–2022 Apache Software Foundation. All rights reserved.