transactional actors and remote actors implemented
This commit is contained in:
parent
a585e0ce38
commit
0a915eaff9
20 changed files with 1419 additions and 472 deletions
|
|
@ -6,9 +6,9 @@ import se.scalablesolutions.akka.kernel.state.*;
|
|||
|
||||
public class InMemStateful {
|
||||
private TransactionalState factory = new TransactionalState();
|
||||
private TransactionalMap mapState = factory.newMap(new InMemoryMapConfig());
|
||||
private TransactionalVector vectorState = factory.newVector(new InMemoryVectorConfig());;
|
||||
private TransactionalRef refState = factory.newRef(new InMemoryRefConfig());
|
||||
private TransactionalMap<String, String> mapState = factory.newInMemoryMap();
|
||||
private TransactionalVector<String> vectorState = factory.newInMemoryVector();
|
||||
private TransactionalRef<String> refState = factory.newInMemoryRef();
|
||||
|
||||
@transactional
|
||||
public String getMapState(String key) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue