Re-introducing 'sender' and 'senderFuture' references. Now 'sender' is available both for !! and !!! message sends

This commit is contained in:
Jonas Bonér 2010-05-19 10:09:30 +02:00
parent feef59f845
commit b36dc5cf79
8 changed files with 72 additions and 70 deletions

View file

@ -15,7 +15,8 @@ import org.multiverse.commitbarriers.CountDownCommitBarrier
final class MessageInvocation(val receiver: ActorRef,
val message: Any,
val replyTo : Option[Either[ActorRef, CompletableFuture[Any]]],
val sender: Option[ActorRef],
val senderFuture: Option[CompletableFuture[Any]],
val transactionSet: Option[CountDownCommitBarrier]) {
if (receiver eq null) throw new IllegalArgumentException("receiver is null")
@ -41,7 +42,8 @@ final class MessageInvocation(val receiver: ActorRef,
"MessageInvocation[" +
"\n\tmessage = " + message +
"\n\treceiver = " + receiver +
"\n\treplyTo = " + replyTo +
"\n\tsender = " + sender +
"\n\tsenderFuture = " + senderFuture +
"\n\ttransactionSet = " + transactionSet +
"\n]"
}