iteration 1 of nested transactional components
This commit is contained in:
parent
0a915eaff9
commit
7083737f95
12 changed files with 812 additions and 197 deletions
|
|
@ -58,6 +58,23 @@ public class PersistentStateful {
|
|||
return msg;
|
||||
}
|
||||
|
||||
public void success(String key, String msg, PersistentStatefulNested nested) {
|
||||
mapState.put(key, msg);
|
||||
vectorState.add(msg);
|
||||
refState.swap(msg);
|
||||
nested.success(key, msg);
|
||||
}
|
||||
|
||||
@transactional
|
||||
public String failure(String key, String msg, PersistentStatefulNested nested, PersistentFailer failer) {
|
||||
mapState.put(key, msg);
|
||||
vectorState.add(msg);
|
||||
refState.swap(msg);
|
||||
nested.failure(key, msg, failer);
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
||||
@transactional
|
||||
public void thisMethodHangs(String key, String msg, PersistentFailer failer) {
|
||||
setMapState(key, msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue