Package xyz.euclia.jaqpotj.consumers
Class BaseConsumer<T>
java.lang.Object
xyz.euclia.jaqpotj.consumers.BaseConsumer<T>
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
AAConsumer,DatasetConsumer,FeatureConsumer,ModelConsumer,TaskConsumer
public abstract class BaseConsumer<T> extends Object implements Closeable
- Author:
- pantelispanka
-
Field Summary
-
Method Summary
Modifier and Type Method Description <T> CompletableFuture<T>getList(List<org.asynchttpclient.Param> params, String token, TypeReference<T> c)<T> CompletableFuture<T>getWithId(String id, String token, TypeReference<T> c)<T> CompletableFuture<T>getWithIdAndParams(String id, List<org.asynchttpclient.Param> params, String token, TypeReference<T> c)<T> CompletableFuture<T>getWithParams(List<org.asynchttpclient.Param> params, String token, TypeReference<T> c)<T> CompletableFuture<T>post(String data, String token, TypeReference<T> c)
-
Field Details
-
path
-
-
Method Details
-
getList
public <T> CompletableFuture<T> getList(List<org.asynchttpclient.Param> params, String token, TypeReference<T> c) throws JaqpotException- Throws:
JaqpotException
-
getWithId
public <T> CompletableFuture<T> getWithId(String id, String token, TypeReference<T> c) throws JaqpotException- Throws:
JaqpotException
-
getWithIdAndParams
public <T> CompletableFuture<T> getWithIdAndParams(String id, List<org.asynchttpclient.Param> params, String token, TypeReference<T> c) throws JaqpotException- Throws:
JaqpotException
-
getWithParams
public <T> CompletableFuture<T> getWithParams(List<org.asynchttpclient.Param> params, String token, TypeReference<T> c) throws JaqpotException- Throws:
JaqpotException
-
post
public <T> CompletableFuture<T> post(String data, String token, TypeReference<T> c) throws JaqpotException- Throws:
JaqpotException
-