Enforce mailbox types on System actors. See #3273

This commit is contained in:
Björn Antonsson 2013-04-26 12:18:01 +02:00
parent d6ff7166d7
commit 539df2e98a
27 changed files with 123 additions and 49 deletions

View file

@ -17,14 +17,17 @@ import akka.util.ByteString
import akka.io.Inet.SocketOption
import akka.io.Tcp._
import akka.io.SelectionHandler._
import akka.dispatch.{ UnboundedMessageQueueSemantics, RequiresMessageQueue }
/**
* Base class for TcpIncomingConnection and TcpOutgoingConnection.
*
* INTERNAL API
*/
private[io] abstract class TcpConnection(val channel: SocketChannel,
val tcp: TcpExt) extends Actor with ActorLogging {
private[io] abstract class TcpConnection(
val channel: SocketChannel,
val tcp: TcpExt)
extends Actor with ActorLogging with RequiresMessageQueue[UnboundedMessageQueueSemantics] {
import tcp.Settings._
import tcp.bufferPool
import TcpConnection._