Interface SimpleClient
-
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
AbstractClient
,WebSocketClient
public interface SimpleClient extends Closeable
- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default List<ResponseMessage>
submit(String gremlin)
default void
submit(String gremlin, Consumer<ResponseMessage> callback)
List<ResponseMessage>
submit(RequestMessage requestMessage)
void
submit(RequestMessage requestMessage, Consumer<ResponseMessage> callback)
default CompletableFuture<List<ResponseMessage>>
submitAsync(String gremlin)
CompletableFuture<List<ResponseMessage>>
submitAsync(RequestMessage requestMessage)
-
-
-
Method Detail
-
submit
default void submit(String gremlin, Consumer<ResponseMessage> callback) throws Exception
- Throws:
Exception
-
submit
void submit(RequestMessage requestMessage, Consumer<ResponseMessage> callback) throws Exception
- Throws:
Exception
-
submit
default List<ResponseMessage> submit(String gremlin) throws Exception
- Throws:
Exception
-
submit
List<ResponseMessage> submit(RequestMessage requestMessage) throws Exception
- Throws:
Exception
-
submitAsync
default CompletableFuture<List<ResponseMessage>> submitAsync(String gremlin) throws Exception
- Throws:
Exception
-
submitAsync
CompletableFuture<List<ResponseMessage>> submitAsync(RequestMessage requestMessage) throws Exception
- Throws:
Exception
-
-