public static final class Client.ReboundClusteredClient extends Client
Client.ClusteredClient that rebinds requests to a
specified Graph or TraversalSource instances on the server-side.Client.ClusteredClient, Client.ReboundClusteredClient, Client.SessionedClientcluster, initialized| Modifier and Type | Method and Description |
|---|---|
Client |
alias(String graphOrTraversalSource)
Create a new
Client that aliases the specified Graph or TraversalSource name on the
server to a variable called "g" for the context of the requests made through that Client. |
RequestMessage |
buildMessage(RequestMessage.Builder builder)
Makes any final changes to the builder and returns the constructed
RequestMessage. |
protected org.apache.tinkerpop.gremlin.driver.Connection |
chooseConnection(RequestMessage msg)
Delegates to the underlying
Client.ClusteredClient. |
CompletableFuture<Void> |
closeAsync()
Prevents messages from being sent from this
Client. |
Client |
init()
Initializes the client which typically means that a connection is established to the server.
|
protected void |
initializeImplementation()
Called in the
Client.init() method. |
Client |
rebind(String graphOrTraversalSource)
Deprecated.
|
close, submit, submit, submitAsync, submitAsync, submitAsyncpublic Client init()
Clientpublic RequestMessage buildMessage(RequestMessage.Builder builder)
ClientRequestMessage. Implementers
may choose to override this message to append data to the request before sending. By default, this method
will simply call the RequestMessage.Builder.create() and return
the RequestMessage.buildMessage in class Clientprotected void initializeImplementation()
ClientClient.init() method.initializeImplementation in class Clientprotected org.apache.tinkerpop.gremlin.driver.Connection chooseConnection(RequestMessage msg) throws TimeoutException, ConnectionException
Client.ClusteredClient.chooseConnection in class ClientTimeoutExceptionConnectionExceptionpublic CompletableFuture<Void> closeAsync()
Client. Note that calling this method does not call
close on the Client that created it.closeAsync in class Client@Deprecated public Client rebind(String graphOrTraversalSource)
Client that aliases the specified Graph or TraversalSource name on the
server to a variable called "g" for the context of the requests made through that Client.public Client alias(String graphOrTraversalSource)
Client that aliases the specified Graph or TraversalSource name on the
server to a variable called "g" for the context of the requests made through that Client.Copyright © 2013–2015 Apache Software Foundation. All rights reserved.