public static class Client.ClusteredClient extends Client
Client implementation that does not operate in a session. Requests are sent to multiple servers
given a LoadBalancingStrategy. Transactions are automatically committed
(or rolled-back on error) after each request.Client.ClusteredClient, Client.SessionedClientcluster, initialized| Modifier and Type | Method and Description |
|---|---|
protected org.apache.tinkerpop.gremlin.driver.Connection |
chooseConnection(RequestMessage msg)
Chooses a
Connection to write the message to. |
CompletableFuture<Void> |
closeAsync()
Asynchronous close of the
Client. |
protected void |
initializeImplementation()
Called in the
Client.init() method. |
buildMessage, close, init, submit, submit, submitAsync, submitAsync, submitAsyncprotected org.apache.tinkerpop.gremlin.driver.Connection chooseConnection(RequestMessage msg) throws TimeoutException, ConnectionException
ClientConnection to write the message to.chooseConnection in class ClientTimeoutExceptionConnectionExceptionprotected void initializeImplementation()
ClientClient.init() method.initializeImplementation in class Clientpublic CompletableFuture<Void> closeAsync()
ClientClient.closeAsync in class ClientCopyright © 2013–2015 Apache Software Foundation. All rights reserved.