Class HttpBatchRequest
-
- All Implemented Interfaces:
-
com.swmansion.starknet.provider.Request
public final class HttpBatchRequest<T extends StarknetResponse> implements Request<List<RequestResult<T>>>
-
-
Method Summary
Modifier and Type Method Description List<RequestResult<T>>
send()
Send a request synchronously CompletableFuture<List<RequestResult<T>>>
sendAsync()
Send a request asynchronously final static <T extends StarknetResponse> HttpBatchRequest<T>
fromRequests(String url, List<JsonRpcRequest> jsonRpcRequests, List<KSerializer<T>> responseDeserializers, Json deserializationJson, HttpService service)
final static <T extends StarknetResponse> HttpBatchRequest<T>
fromRequestsAny(String url, List<JsonRpcRequest> jsonRpcRequests, List<KSerializer<out T>> responseDeserializers, Json deserializationJson, HttpService service)
-
-
Method Detail
-
send
List<RequestResult<T>> send()
Send a request synchronously
-
sendAsync
CompletableFuture<List<RequestResult<T>>> sendAsync()
Send a request asynchronously
-
fromRequests
final static <T extends StarknetResponse> HttpBatchRequest<T> fromRequests(String url, List<JsonRpcRequest> jsonRpcRequests, List<KSerializer<T>> responseDeserializers, Json deserializationJson, HttpService service)
-
fromRequestsAny
final static <T extends StarknetResponse> HttpBatchRequest<T> fromRequestsAny(String url, List<JsonRpcRequest> jsonRpcRequests, List<KSerializer<out T>> responseDeserializers, Json deserializationJson, HttpService service)
-
-
-
-