unify sender/senderFuture into channel (++)

(squashed merge from the various bits and pieces already part of
release-1.2, everything related to Channel & Future)
This commit is contained in:
Roland 2011-06-13 22:36:46 +02:00
parent cee934a99a
commit 7712c20620
28 changed files with 679 additions and 252 deletions

View file

@ -16,10 +16,9 @@ import akka.actor._
/**
* @author <a href="http://jonasboner.com">Jonas Bon&#233;r</a>
*/
final case class MessageInvocation(receiver: ActorRef,
message: Any,
sender: Option[ActorRef],
senderFuture: Option[Promise[Any]]) {
final case class MessageInvocation(val receiver: ActorRef,
val message: Any,
val channel: UntypedChannel) {
if (receiver eq null) throw new IllegalArgumentException("Receiver can't be null")
final def invoke() {