Skip to content

Commit

Permalink
update readme file for JdempotentProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
memojja authored Mar 7, 2022
1 parent d488b75 commit 23e649d
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,23 @@ For example:

```java
public class IdempotentPaylaod {
@JdempotentId
private String jdempotentId;
private Object data;
@JdempotentId
private String jdempotentId;
private Object data;
}
```

You might want to handle the name of the field differently to ensure idempotency. Just use @JdempotentProperty annotation needs to get the field name differently and generate the hash

```java
public class IdempotentPaylaod {
@JdempotentProperty("userId")
private String customerId;
private Object data;
}
```


3. If you want to handle a custom error case, you need to implement `ErrorConditionalCallback` like the following example:

```java
Expand Down

0 comments on commit 23e649d

Please sign in to comment.