Package ch.brix.gql.client
Class ThrottledClient
- java.lang.Object
-
- ch.brix.gql.client.Client
-
- ch.brix.gql.client.ThrottledClient
-
public class ThrottledClient extends Client
-
-
Constructor Summary
Constructors Constructor Description ThrottledClient(String endpoint, TypeRegistry typeRegistry, long requests, long perSeconds)ThrottledClient(String endpoint, okhttp3.OkHttpClient client, TypeRegistry typeRegistry, long requests, long perSeconds)
-
-
-
Constructor Detail
-
ThrottledClient
public ThrottledClient(String endpoint, TypeRegistry typeRegistry, long requests, long perSeconds)
-
ThrottledClient
public ThrottledClient(String endpoint, okhttp3.OkHttpClient client, TypeRegistry typeRegistry, long requests, long perSeconds)
-
-
Method Detail
-
execute
public <T> T execute(CallBuilder<T> callBuilder) throws IOException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException
- Overrides:
executein classClient- Throws:
IOExceptionInvocationTargetExceptionNoSuchMethodExceptionInstantiationExceptionIllegalAccessException
-
-