Class GremlinClient
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.driver.Client
-
- org.apache.tinkerpop.gremlin.driver.GremlinClient
-
- All Implemented Interfaces:
AutoCloseable,Refreshable
public class GremlinClient extends org.apache.tinkerpop.gremlin.driver.Client implements Refreshable, AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGremlinClient.GremlinAliasClusterClient-
Nested classes/interfaces inherited from class org.apache.tinkerpop.gremlin.driver.Client
org.apache.tinkerpop.gremlin.driver.Client.AliasClusteredClient, org.apache.tinkerpop.gremlin.driver.Client.ClusteredClient, org.apache.tinkerpop.gremlin.driver.Client.SessionedClient, org.apache.tinkerpop.gremlin.driver.Client.SessionSettings, org.apache.tinkerpop.gremlin.driver.Client.Settings
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.tinkerpop.gremlin.driver.Clientalias(String graphOrTraversalSource)org.apache.tinkerpop.gremlin.driver.Clientalias(Map<String,String> aliases)protected org.apache.tinkerpop.gremlin.driver.ConnectionchooseConnection(org.apache.tinkerpop.gremlin.util.message.RequestMessage msg)CompletableFuture<Void>closeAsync()EndpointCollectioncurrentEndpoints()org.apache.tinkerpop.gremlin.driver.Clientinit()protected voidinitializeImplementation()booleanisClosing()voidrefreshEndpoints()Refreshes the client with its current set of endpoints.voidrefreshEndpoints(Collection<? extends Endpoint> endpoints)Refreshes the list of endpoint addresses to which the client connects.voidrefreshEndpoints(Endpoint... endpoints)Refreshes the list of endpoint addresses to which the client connects.voidrefreshEndpoints(EndpointCollection endpoints)Refreshes the list of endpoint addresses to which the client connects.StringtoString()-
Methods inherited from class org.apache.tinkerpop.gremlin.driver.Client
buildMessage, close, getCluster, getSettings, makeDefaultAliasMap, submit, submit, submit, submit, submit, submit, submitAsync, submitAsync, submitAsync, submitAsync, submitAsync, submitAsync, submitAsync, submitAsync, submitAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
refreshEndpoints
public void refreshEndpoints()
Refreshes the client with its current set of endpoints. (Useful for triggering metrics for static cluster topologies.)
-
refreshEndpoints
public void refreshEndpoints(Collection<? extends Endpoint> endpoints)
Refreshes the list of endpoint addresses to which the client connects.
-
refreshEndpoints
public void refreshEndpoints(Endpoint... endpoints)
Refreshes the list of endpoint addresses to which the client connects.
-
refreshEndpoints
public void refreshEndpoints(EndpointCollection endpoints)
Refreshes the list of endpoint addresses to which the client connects.- Specified by:
refreshEndpointsin interfaceRefreshable
-
currentEndpoints
public EndpointCollection currentEndpoints()
-
initializeImplementation
protected void initializeImplementation()
- Specified by:
initializeImplementationin classorg.apache.tinkerpop.gremlin.driver.Client
-
chooseConnection
protected org.apache.tinkerpop.gremlin.driver.Connection chooseConnection(org.apache.tinkerpop.gremlin.util.message.RequestMessage msg) throws TimeoutException, org.apache.tinkerpop.gremlin.driver.exception.ConnectionException- Specified by:
chooseConnectionin classorg.apache.tinkerpop.gremlin.driver.Client- Throws:
TimeoutExceptionorg.apache.tinkerpop.gremlin.driver.exception.ConnectionException
-
alias
public org.apache.tinkerpop.gremlin.driver.Client alias(String graphOrTraversalSource)
- Overrides:
aliasin classorg.apache.tinkerpop.gremlin.driver.Client
-
alias
public org.apache.tinkerpop.gremlin.driver.Client alias(Map<String,String> aliases)
- Overrides:
aliasin classorg.apache.tinkerpop.gremlin.driver.Client
-
isClosing
public boolean isClosing()
- Specified by:
isClosingin classorg.apache.tinkerpop.gremlin.driver.Client
-
closeAsync
public CompletableFuture<Void> closeAsync()
- Specified by:
closeAsyncin classorg.apache.tinkerpop.gremlin.driver.Client
-
init
public org.apache.tinkerpop.gremlin.driver.Client init()
- Overrides:
initin classorg.apache.tinkerpop.gremlin.driver.Client
-
-