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 |
maintainStateAfterException(boolean maintainStateAfterException)
When
true an exception within a session will not close the session and remove the state bound to
that session. |
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 maintainStateAfterException(boolean maintainStateAfterException)
true
an exception within a session will not close the session and remove the state bound to
that session. This setting is for the UnifiedChannelizer
and when set to true
will allow
sessions to behave similar to how they did under the OpProcessor
approach original to Gremlin
Server. By default this value is false
.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–2023 Apache Software Foundation. All rights reserved.