public abstract class AbstractClient extends Object implements SimpleClient
Modifier and Type | Field and Description |
---|---|
protected org.apache.tinkerpop.gremlin.driver.simple.AbstractClient.CallbackResponseHandler |
callbackResponseHandler |
protected io.netty.channel.EventLoopGroup |
group |
Constructor and Description |
---|
AbstractClient(String threadPattern) |
Modifier and Type | Method and Description |
---|---|
List<ResponseMessage> |
submit(RequestMessage requestMessage) |
void |
submit(RequestMessage requestMessage,
Consumer<ResponseMessage> callback) |
CompletableFuture<List<ResponseMessage>> |
submitAsync(RequestMessage requestMessage) |
abstract void |
writeAndFlush(RequestMessage requestMessage) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
submit, submit, submitAsync
protected final org.apache.tinkerpop.gremlin.driver.simple.AbstractClient.CallbackResponseHandler callbackResponseHandler
protected final io.netty.channel.EventLoopGroup group
public AbstractClient(String threadPattern)
public abstract void writeAndFlush(RequestMessage requestMessage) throws Exception
Exception
public void submit(RequestMessage requestMessage, Consumer<ResponseMessage> callback) throws Exception
submit
in interface SimpleClient
Exception
public List<ResponseMessage> submit(RequestMessage requestMessage) throws Exception
submit
in interface SimpleClient
Exception
public CompletableFuture<List<ResponseMessage>> submitAsync(RequestMessage requestMessage) throws Exception
submitAsync
in interface SimpleClient
Exception
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.