Class Client.AliasClusteredClient
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.driver.Client
- 
- org.apache.tinkerpop.gremlin.driver.Client.AliasClusteredClient
 
 
- 
- Enclosing class:
- Client
 
 public static class Client.AliasClusteredClient extends Client Uses aClient.ClusteredClientthat rebinds requests to a specifiedGraphorTraversalSourceinstances on the server-side.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.driver.ClientClient.AliasClusteredClient, Client.ClusteredClient, Client.SessionedClient, Client.SessionSettings, Client.Settings
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.tinkerpop.gremlin.driver.Clientcluster, initialized, settings, TOO_MANY_IN_FLIGHT_REQUESTS
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Clientalias(Map<String,String> aliases)Creates aClientthat supplies the specified set of aliases, thus allowing the user to re-name one or more globally definedGraphorTraversalSourceserver bindings for the context of the createdClient.org.apache.tinkerpop.gremlin.util.message.RequestMessage.BuilderbuildMessage(org.apache.tinkerpop.gremlin.util.message.RequestMessage.Builder builder)Makes any initial changes to the builder and returns the constructedRequestMessage.protected org.apache.tinkerpop.gremlin.driver.ConnectionchooseConnection(org.apache.tinkerpop.gremlin.util.message.RequestMessage msg)Delegates to the underlyingClient.ClusteredClient.voidclose()Closes the client by making a synchronous call toClient.closeAsync().CompletableFuture<Void>closeAsync()Asynchronous close of theClient.Clientinit()Initializes the client which typically means that a connection is established to the server.protected voidinitializeImplementation()Called in theClient.init()method.booleanisClosing()CompletableFuture<ResultSet>submitAsync(Bytecode bytecode)An asynchronous version ofClient.submit(Traversal).CompletableFuture<ResultSet>submitAsync(Bytecode bytecode, RequestOptions options)A version ofClient.submit(Bytecode)which provides the ability to set per-request options.CompletableFuture<ResultSet>submitAsync(Traversal traversal)An asynchronous version ofClient.submit(Traversal).CompletableFuture<ResultSet>submitAsync(org.apache.tinkerpop.gremlin.util.message.RequestMessage msg)A low-level method that allows the submission of a manually constructedRequestMessage.- 
Methods inherited from class org.apache.tinkerpop.gremlin.driver.Clientalias, getCluster, getSettings, makeDefaultAliasMap, submit, submit, submit, submit, submit, submit, submitAsync, submitAsync, submitAsync, submitAsync, submitAsync
 
- 
 
- 
- 
- 
Method Detail- 
submitAsyncpublic CompletableFuture<ResultSet> submitAsync(Bytecode bytecode) Description copied from class:ClientAn asynchronous version ofClient.submit(Traversal). Results are returned asTraverserinstances and are therefore bulked, meaning that to properly iterate the contents of the result eachTraverser.bulk()must be examined to determine the number of times that object should be presented in iteration.- Overrides:
- submitAsyncin class- Client
 
 - 
submitAsyncpublic CompletableFuture<ResultSet> submitAsync(Bytecode bytecode, RequestOptions options) Description copied from class:ClientA version ofClient.submit(Bytecode)which provides the ability to set per-request options.- Overrides:
- submitAsyncin class- Client
- Parameters:
- bytecode- request in the form of gremlin- Bytecode
- options- for the request
- See Also:
- Client.submitAsync(Bytecode)
 
 - 
submitAsyncpublic CompletableFuture<ResultSet> submitAsync(org.apache.tinkerpop.gremlin.util.message.RequestMessage msg) Description copied from class:ClientA low-level method that allows the submission of a manually constructedRequestMessage.- Overrides:
- submitAsyncin class- Client
 
 - 
submitAsyncpublic CompletableFuture<ResultSet> submitAsync(Traversal traversal) Description copied from class:ClientAn asynchronous version ofClient.submit(Traversal). Results are returned asTraverserinstances and are therefore bulked, meaning that to properly iterate the contents of the result eachTraverser.bulk()must be examined to determine the number of times that object should be presented in iteration.- Overrides:
- submitAsyncin class- Client
 
 - 
initpublic Client init() Description copied from class:ClientInitializes the client which typically means that a connection is established to the server. Depending on the implementation and configuration this blocking call may take some time. This method will be called automatically if it is not called directly and multiple calls will not have effect.
 - 
buildMessagepublic org.apache.tinkerpop.gremlin.util.message.RequestMessage.Builder buildMessage(org.apache.tinkerpop.gremlin.util.message.RequestMessage.Builder builder) Description copied from class:ClientMakes any initial changes to the builder and returns the constructedRequestMessage. Implementers may choose to override this message to append data to the request before sending. By default, this method will simply return thebuilderpassed in by the caller.- Overrides:
- buildMessagein class- Client
 
 - 
initializeImplementationprotected void initializeImplementation() Description copied from class:ClientCalled in theClient.init()method.- Specified by:
- initializeImplementationin class- Client
 
 - 
chooseConnectionprotected org.apache.tinkerpop.gremlin.driver.Connection chooseConnection(org.apache.tinkerpop.gremlin.util.message.RequestMessage msg) throws TimeoutException, org.apache.tinkerpop.gremlin.driver.exception.ConnectionExceptionDelegates to the underlyingClient.ClusteredClient.- Specified by:
- chooseConnectionin class- Client
- Throws:
- TimeoutException
- org.apache.tinkerpop.gremlin.driver.exception.ConnectionException
 
 - 
closepublic void close() Description copied from class:ClientCloses the client by making a synchronous call toClient.closeAsync().
 - 
closeAsyncpublic CompletableFuture<Void> closeAsync() Description copied from class:ClientAsynchronous close of theClient.- Specified by:
- closeAsyncin class- Client
 
 
- 
 
-