Now doing a 'reply(..)' to remote sender after receiving a remote message through '!' works. Added tests.

Also removed the Logging trait from Actor for lower memory footprint.
This commit is contained in:
Jonas Bonér 2010-04-06 12:45:09 +02:00
parent 85cb032964
commit 9c57c3ba97
11 changed files with 191 additions and 147 deletions

View file

@ -51,10 +51,9 @@ object TransactionManagement extends TransactionManagement {
}
}
trait TransactionManagement extends Logging {
trait TransactionManagement {
private[akka] def createNewTransactionSet: CountDownCommitBarrier = {
log.trace("Creating new transaction set")
val txSet = new CountDownCommitBarrier(1, TransactionManagement.FAIR_TRANSACTIONS)
TransactionManagement.transactionSet.set(Some(txSet))
txSet
@ -67,12 +66,10 @@ trait TransactionManagement extends Logging {
if (tx.isDefined) TransactionManagement.transaction.set(tx)
private[akka] def clearTransactionSet = {
log.trace("Clearing transaction set")
TransactionManagement.transactionSet.set(None)
}
private[akka] def clearTransaction = {
log.trace("Clearing transaction")
TransactionManagement.transaction.set(None)
setThreadLocalTransaction(null)
}
@ -90,4 +87,4 @@ trait TransactionManagement extends Logging {
val option = TransactionManagement.transaction.get
(option ne null) && option.isDefined
}
}
}