transactional actors and remote actors implemented

This commit is contained in:
Jonas Boner 2009-06-29 15:01:20 +02:00
parent a585e0ce38
commit 0a915eaff9
20 changed files with 1419 additions and 472 deletions

View file

@ -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) {