Class Settings
java.lang.Object
org.apache.tinkerpop.gremlin.driver.Settings
Settings for the
Cluster and its related components.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionSettings for authentication.booleanToggles if result from server is bulked.Settings for connections and connection pool.booleanToggles if user agent should be sent in web socket handshakes.The list of hosts that the driver will connect to.intThe maximum number of entries that a single bulked list in a GraphBinary response may expand to.intThe maximum capacity reserved up front for a collection or map read from a GraphBinary response.intThe maximum length in bytes of a singleString,BigIntegeror binary value in a GraphBinary response.intThe size of the thread pool defaulted to the number of available processors.The path to the Gremlin service which is defaulted to "/gremlin".intThe port of the Gremlin Server to connect to which defaults to8182.The serializer used to deserialize responses from the server.intThe number of worker threads defaulted to the number of available processors * 2. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
port
public int portThe port of the Gremlin Server to connect to which defaults to8182. The same port will be applied for allhosts. -
path
The path to the Gremlin service which is defaulted to "/gremlin". -
hosts
The list of hosts that the driver will connect to. -
responseSerializer
The serializer used to deserialize responses from the server. This selects the encoding requested via theAcceptheader; requests are always sent as JSON regardless of this setting. Note that this serializer should be supported by the server configuration. -
connectionPool
Settings for connections and connection pool. -
auth
Settings for authentication. -
nioPoolSize
public int nioPoolSizeThe size of the thread pool defaulted to the number of available processors. -
workerPoolSize
public int workerPoolSizeThe number of worker threads defaulted to the number of available processors * 2. -
enableUserAgentOnConnect
public boolean enableUserAgentOnConnectToggles if user agent should be sent in web socket handshakes. -
bulkResults
public boolean bulkResultsToggles if result from server is bulked. Default is false. -
maxGraphBinaryValueLength
public int maxGraphBinaryValueLengthThe maximum length in bytes of a singleString,BigIntegeror binary value in a GraphBinary response. A response declaring a value of a longer length fails. The driver has no other bound on the size of a response value, so raising this limit also raises how much memory a single value may require. This setting applies only to GraphBinary. The default is 64MB. -
maxGraphBinaryInitialCapacity
public int maxGraphBinaryInitialCapacityThe maximum capacity reserved up front for a collection or map read from a GraphBinary response. This does not limit the size of the collection, which grows as elements are read. It only bounds the memory reserved before they are. This setting applies only to GraphBinary. The default is 16,384. -
maxGraphBinaryBulkedListLength
public int maxGraphBinaryBulkedListLengthThe maximum number of entries that a single bulked list in a GraphBinary response may expand to. A bulked list sends each distinct item once with a repeat count, so a small response can otherwise describe a very large list. A response containing a bulked list that would expand beyond this size fails. Each entry held in memory costs a reference of 4 or 8 bytes. This setting applies only to GraphBinary. The default is 16,777,216.
-
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details