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
Copy file name to clipboardExpand all lines: README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# Spring Persistent Tasks
2
2
3
-
A simple task framework which has it's focus being simple and to support [Poor mans Workflow](https://github.com/sterlp/pmw)
3
+
A simple task management framework designed to queue and execute asynchronous tasks with support for database persistence and a user-friendly interface. It can be used to implement scheduling patterns or outbound patterns.
4
+
5
+
Focus is the usage with spring boot and JPA.
6
+
7
+
Secondary goal is to support [Poor mans Workflow](https://github.com/sterlp/pmw)
4
8
5
9
# Setup and Run a Task
6
10
@@ -36,6 +40,7 @@ public class BuildVehicleTask implements SpringBeanTask<Vehicle> {
36
40
37
41
privatefinalVehicleRepository vehicleRepository;
38
42
43
+
@Transactional(timeout=5)
39
44
@Override
40
45
publicvoidaccept(Vehiclevehicle) {
41
46
// do stuff
@@ -47,14 +52,15 @@ public class BuildVehicleTask implements SpringBeanTask<Vehicle> {
47
52
48
53
### As a closure
49
54
55
+
Note:this example has no aspects as above the spring *@Transactional*
0 commit comments