Class Client.AliasClusteredClient
java.lang.Object
org.apache.tinkerpop.gremlin.driver.Client
org.apache.tinkerpop.gremlin.driver.Client.AliasClusteredClient
- All Implemented Interfaces:
RequestSubmitter,RequestSubmitterAsync
- Enclosing class:
- Client
Uses a
Client.ClusteredClient that rebinds requests to a specified Graph or
TraversalSource instances on the server-side.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.driver.Client
Client.AliasClusteredClient, Client.ClusteredClient, Client.PinnedClient -
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.driver.Client
cluster, initialized, TOO_MANY_IN_FLIGHT_REQUESTS -
Method Summary
Modifier and TypeMethodDescriptionCreate a newClientthat aliases the specifiedGraphorTraversalSourcename on the server to a variable called "g" for the context of the requests made through thatClient.buildMessage(RequestMessage.Builder builder) Makes any initial changes to the builder and returns the constructedRequestMessage.protected org.apache.tinkerpop.gremlin.driver.ConnectionDelegates to the underlyingClient.ClusteredClient.voidclose()Closes the client by making a synchronous call toClient.closeAsync().Asynchronous close of theClient.init()Initializes the client which typically means that a connection is established to the server.protected voidCalled in theClient.init()method.booleanA low-level method that allows the submission of a manually constructedRequestMessage.Methods inherited from class org.apache.tinkerpop.gremlin.driver.Client
chooseRandomHost, getCluster, submit, submit, submit, submitAsync, submitAsync, submitAsync, submitAsync
-
Method Details
-
submitAsync
Description copied from class:ClientA low-level method that allows the submission of a manually constructedRequestMessage.- Overrides:
submitAsyncin classClient
-
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. -
buildMessage
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 classClient
-
initializeImplementation
protected void initializeImplementation()Description copied from class:ClientCalled in theClient.init()method.- Specified by:
initializeImplementationin classClient
-
chooseConnection
protected org.apache.tinkerpop.gremlin.driver.Connection chooseConnection(RequestMessage msg) throws TimeoutException, ConnectionException Delegates to the underlyingClient.ClusteredClient.- Specified by:
chooseConnectionin classClient- Throws:
TimeoutExceptionConnectionException
-
close
public void close()Description copied from class:ClientCloses the client by making a synchronous call toClient.closeAsync(). -
closeAsync
Description copied from class:ClientAsynchronous close of theClient.- Specified by:
closeAsyncin classClient
-
isClosing
public boolean isClosing() -
alias
Create a newClientthat aliases the specifiedGraphorTraversalSourcename on the server to a variable called "g" for the context of the requests made through thatClient.
-