Class SimpleHttpClient
java.lang.Object
org.apache.tinkerpop.gremlin.driver.simple.AbstractClient
org.apache.tinkerpop.gremlin.driver.simple.SimpleHttpClient
- All Implemented Interfaces:
Closeable,AutoCloseable,SimpleClient
A simple, non-thread safe Gremlin Server client using HTTP. Typical use is for testing and demonstration.
-
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.driver.simple.AbstractClient
callbackResponseHandler, group -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()submitAsync(RequestMessage requestMessage) voidwriteAndFlush(RequestMessage requestMessage) Methods inherited from class org.apache.tinkerpop.gremlin.driver.simple.AbstractClient
submit, submitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.driver.simple.SimpleClient
submit, submit, submitAsync
-
Constructor Details
-
SimpleHttpClient
public SimpleHttpClient() -
SimpleHttpClient
-
-
Method Details
-
submitAsync
public CompletableFuture<List<ResponseMessage>> submitAsync(RequestMessage requestMessage) throws Exception - Throws:
Exception
-
writeAndFlush
- Specified by:
writeAndFlushin classAbstractClient- Throws:
Exception
-
close
- Throws:
IOException
-