cleanup and refactoring of active object code
This commit is contained in:
parent
bbec315eb2
commit
8bc40775b3
3 changed files with 313 additions and 122 deletions
|
|
@ -36,15 +36,15 @@ public class InMemStateful {
|
|||
@transactional
|
||||
public void success(String key, String msg) {
|
||||
mapState.put(key, msg);
|
||||
vectorState.add(msg);
|
||||
refState.swap(msg);
|
||||
//vectorState.add(msg);
|
||||
//refState.swap(msg);
|
||||
}
|
||||
|
||||
@transactional
|
||||
public void failure(String key, String msg, InMemFailer failer) {
|
||||
mapState.put(key, msg);
|
||||
vectorState.add(msg);
|
||||
refState.swap(msg);
|
||||
//vectorState.add(msg);
|
||||
//refState.swap(msg);
|
||||
failer.fail();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue