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
@@ -260,6 +268,7 @@ You can use `lithic.webhooks().verifySignature(body, headers, secret?)` or `lith
260
268
261
269
---
262
270
271
+
263
272
## Error handling
264
273
265
274
This library throws exceptions in a single hierarchy for easy handling:
@@ -286,35 +295,27 @@ This library throws exceptions in a single hierarchy for easy handling:
286
295
## Network options
287
296
288
297
### Retries
289
-
290
298
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.
291
299
You can provide a `maxRetries` on the client builder to configure this:
292
-
293
300
```java
294
301
LithicClient client =LithicOkHttpClient.builder()
295
302
.fromEnv()
296
303
.maxRetries(4)
297
304
.build();
298
305
```
299
-
300
306
### Timeouts
301
-
302
307
Requests time out after 60 seconds by default. You can configure this on the client builder:
303
-
304
308
```java
305
309
LithicClient client =LithicOkHttpClient.builder()
306
310
.fromEnv()
307
311
.timeout(Duration.ofSeconds(30))
308
312
.build();
309
313
```
310
-
311
314
### Environments
312
-
313
315
Requests are made to the production environment by default. You can connect to other environments, like `sandbox`, via the client builder:
0 commit comments