public static class Client.SessionSettings.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Client.SessionSettings |
create() |
Client.SessionSettings.Builder |
forceClosed(boolean forced)
Determines if the session should be force closed when the client is closed.
|
Client.SessionSettings.Builder |
manageTransactions(boolean manage)
If enabled, transactions will be "managed" such that each request will represent a complete transaction.
|
Client.SessionSettings.Builder |
sessionId(String sessionId)
Provides the identifier of the session.
|
public Client.SessionSettings.Builder manageTransactions(boolean manage)
false
.public Client.SessionSettings.Builder sessionId(String sessionId)
UUID
.public Client.SessionSettings.Builder forceClosed(boolean forced)
true
tends to lead to
faster close operation which can be desirable if Gremlin Server has a long session timeout and a long
script evaluation timeout as attempts to close long run jobs can occur more rapidly. By default, this
value is false
.public Client.SessionSettings create()
Copyright © 2013–2020 Apache Software Foundation. All rights reserved.