public interface IRequestManager
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.
|
<T extends Response> java.util.concurrent.CompletableFuture<T> callEngineAsync(java.lang.String action, Request requestData, UserMetaData metaData, java.lang.Class<T> responseType)
T
- The expected response type. E.g. if making a search call the expected type would be SearchResponse
action
- 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