public class RequestManager extends java.lang.Object implements IRequestManager
| Constructor and Description |
|---|
RequestManager(Loop54Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Response> |
callEngineAsync(java.lang.String action,
Request requestData,
UserMetaData metaData,
java.lang.Class<T> responseType)
Calls the loop54 search engine and returns a deserialized response object.
|
Loop54Settings |
getSettings() |
public RequestManager(Loop54Settings settings)
settings - The settings for this instance to use when calling Loop54.public Loop54Settings getSettings()
public <T extends Response> java.util.concurrent.CompletableFuture<T> callEngineAsync(java.lang.String action, Request requestData, UserMetaData metaData, java.lang.Class<T> responseType)
IRequestManagercallEngineAsync in interface IRequestManagerT - The expected response type. E.g. if making a search call the expected type would be SearchResponseaction - The type of request. This will translate into the resource on the actual HTTP request i.e. "endpoint/action". Must not be null.requestData - The query data to send to the engine. Must not be null.metaData - Data about the requesting user. Must not be null.responseType - The expected response type. E.g. if making a search call the expected type would be SearchResponse