fixed bug with using ThreadBasedDispatcher + added tests for dispatchers

This commit is contained in:
jboner 2009-10-14 12:59:05 +02:00
parent 2c517f2731
commit 61d0b4418e
21 changed files with 303 additions and 101 deletions

View file

@ -5,11 +5,9 @@ import se.scalablesolutions.akka.state.*;
@transactionrequired
public class PersistentStatefulNested {
private PersistentState factory = new PersistentState();
private TransactionalMap mapState = factory.newMap(new CassandraStorageConfig());
private TransactionalVector vectorState = factory.newVector(new CassandraStorageConfig());;
private TransactionalRef refState = factory.newRef(new CassandraStorageConfig());
private PersistentMap mapState = PersistentState.newMap(new CassandraStorageConfig());
private PersistentVector vectorState = PersistentState.newVector(new CassandraStorageConfig());
private PersistentRef refState = PersistentState.newRef(new CassandraStorageConfig());
public String getMapState(String key) {
return (String) mapState.get(key).get();