Package xyz.euclia.jaqpotj.consumers
Class ModelConsumer
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ModelConsumer extends BaseConsumer<Model>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ModelConsumer(org.asynchttpclient.AsyncHttpClient client, Serializer serializer, String basepath) -
Method Summary
Modifier and Type Method Description voidclose()CompletableFuture<Models>getModelsWithParams(List<org.asynchttpclient.Param> params, String token)CompletableFuture<Task>predict(String modelId, String datasetUri, String token)Methods inherited from class xyz.euclia.jaqpotj.consumers.BaseConsumer
getList, getWithId, getWithIdAndParams, getWithParams, post
-
Field Details
-
path
-
basePath
-
-
Constructor Details
-
ModelConsumer
public ModelConsumer(org.asynchttpclient.AsyncHttpClient client, Serializer serializer, String basepath)
-
-
Method Details
-
getModelsWithParams
public CompletableFuture<Models> getModelsWithParams(List<org.asynchttpclient.Param> params, String token) throws JaqpotException- Throws:
JaqpotException
-
predict
public CompletableFuture<Task> predict(String modelId, String datasetUri, String token) throws JaqpotException- Throws:
JaqpotException
-
close
- Throws:
IOException
-