new factory for transactional state
This commit is contained in:
parent
93f712effe
commit
8ff45daddc
5 changed files with 361 additions and 238 deletions
|
|
@ -5,9 +5,10 @@ import se.scalablesolutions.akka.annotation.transactional;
|
|||
import se.scalablesolutions.akka.annotation.state;
|
||||
|
||||
public class PersistentStateful {
|
||||
private TransactionalMap mapState = new CassandraPersistentTransactionalMap();
|
||||
private TransactionalVector vectorState = new CassandraPersistentTransactionalVector();
|
||||
private TransactionalRef refState = new CassandraPersistentTransactionalRef();
|
||||
private TransactionalState factory = new TransactionalState();
|
||||
private TransactionalMap mapState = factory.newMap(new PersistentMapConfig(new CassandraStorageConfig()));
|
||||
private TransactionalVector vectorState = factory.newVector(new PersistentVectorConfig(new CassandraStorageConfig()));;
|
||||
private TransactionalRef refState = factory.newRef(new PersistentRefConfig(new CassandraStorageConfig()));
|
||||
|
||||
@transactional
|
||||
public String getMapState(String key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue