added init tx state hook for active objects, rewrote mongodb test
This commit is contained in:
parent
1bce709c5d
commit
98bdd9370d
17 changed files with 538 additions and 593 deletions
|
|
@ -1,11 +1,16 @@
|
|||
package se.scalablesolutions.akka.api;
|
||||
|
||||
import se.scalablesolutions.akka.state.*;
|
||||
import se.scalablesolutions.akka.annotation.inittransactionalstate;
|
||||
|
||||
public class PersistentClasher {
|
||||
private PersistentState factory = new PersistentState();
|
||||
private PersistentMap state = factory.newMap(new CassandraStorageConfig());
|
||||
private PersistentMap state;
|
||||
|
||||
@inittransactionalstate
|
||||
public void init() {
|
||||
state = PersistentState.newMap(new CassandraStorageConfig());
|
||||
}
|
||||
|
||||
public String getState(String key) {
|
||||
return (String)state.get(key).get();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue