You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Lithic Java SDK provides convenient access to the Lithic REST API from applications written in Java. It includes helper classes with helpful types and documentation for every request and response property.
6
6
@@ -21,7 +21,7 @@ The API documentation can be found [here](https://docs.lithic.com).
Sometimes, the server response may include additional properties that are not yet available in this library's types. You can access them using the model's `_additionalProperties` method:
@@ -203,6 +210,7 @@ Sometimes, the server response may include additional properties that are not ye
@@ -268,6 +276,7 @@ You can use `lithic.webhooks().verifySignature(body, headers, secret?)` or `lith
268
276
269
277
---
270
278
279
+
271
280
## Error handling
272
281
273
282
This library throws exceptions in a single hierarchy for easy handling:
@@ -294,32 +303,24 @@ This library throws exceptions in a single hierarchy for easy handling:
294
303
## Network options
295
304
296
305
### Retries
297
-
298
306
Requests that experience certain errors are automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, due to a network connectivity problem), 409 Conflict, 429 Rate Limit, and >=500 Internal errors will all be retried by default.
299
307
You can provide a `maxRetries` on the client builder to configure this:
300
-
301
308
```java
302
309
LithicClient client =LithicOkHttpClient.builder()
303
310
.fromEnv()
304
311
.maxRetries(4)
305
312
.build();
306
313
```
307
-
308
314
### Timeouts
309
-
310
315
Requests time out after 60 seconds by default. You can configure this on the client builder:
311
-
312
316
```java
313
317
LithicClient client =LithicOkHttpClient.builder()
314
318
.fromEnv()
315
319
.timeout(Duration.ofSeconds(30))
316
320
.build();
317
321
```
318
-
319
322
### Proxies
320
-
321
323
Requests can be routed through a proxy. You can configure this on the client builder:
0 commit comments