finished remote actors (with tests) plus half-baked distributed transactions (not complete)

This commit is contained in:
Jonas Boner 2009-06-25 23:47:30 +02:00
parent 10a0c16cb2
commit a585e0ce38
19 changed files with 1055 additions and 817 deletions

View file

@ -116,8 +116,9 @@ class ObjectClientHandler(val futures: ConcurrentMap[Long, CompletableFutureResu
val result = event.getMessage
if (result.isInstanceOf[RemoteReply]) {
val reply = result.asInstanceOf[RemoteReply]
val tx = reply.tx
val future = futures.get(reply.id)
if (reply.successful) future.completeWithResult(reply.message)
if (reply.successful) future.completeWithResult((reply.message, tx))
else future.completeWithException(null, reply.exception)
} else throw new IllegalArgumentException("Unknown message received in NIO client handler: " + result)
} catch {