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
|`NoOpIdempotencyRegistry`| Does nothing. No results are stored or retrieved. | Default, use if idempotency is handled elsewhere. |
22
+
|`InMemoryIdempotencyRegistry`| Stores results in a local `ConcurrentHashMap`. | Testing or non-clustered environments.|
23
+
|`JpaIdempotencyRegistry`| Stores results in a database using JPA. | Production, clustered environments.|
24
24
25
25
## Setup Procedures
26
26
@@ -58,7 +58,58 @@ Add the following dependency to your `pom.xml`:
58
58
59
59
The `JpaIdempotencyAutoConfiguration` will automatically register the `JpaIdempotencyRegistry` if an `EntityManager` is present and no other `IdempotencyRegistry` bean is defined.
60
60
61
-
#### 2. Database Schema (Liquibase)
61
+
#### 2. Configure JPA
62
+
63
+
Add the `dev.bpmcrafters.processengine.worker.idempotency.TaskLogEntryRepository` with the following annotation
Copy file name to clipboardExpand all lines: itest/spring-boot-integration-testing/src/main/kotlin/dev/bpmcrafters/processengine/worker/itest/AbstractBehaviorITestBase.kt
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,13 @@ abstract class AbstractBehaviorITestBase {
Copy file name to clipboardExpand all lines: itest/spring-boot-starter-integration-test/src/test/kotlin/dev/bpmcrafters/processengine/worker/itest/idempotency/IdempotencyITest.kt
0 commit comments