Enforce mailbox types on System actors. See #3273
This commit is contained in:
parent
d6ff7166d7
commit
539df2e98a
27 changed files with 123 additions and 49 deletions
|
|
@ -13,6 +13,7 @@ import scala.util.Failure
|
|||
import akka.actor.Terminated
|
||||
import akka.actor.Props
|
||||
import akka.util.ByteString
|
||||
import akka.dispatch.{ UnboundedMessageQueueSemantics, RequiresMessageQueue }
|
||||
|
||||
object TcpPipelineHandler {
|
||||
|
||||
|
|
@ -87,7 +88,7 @@ class TcpPipelineHandler[Ctx <: PipelineContext, Cmd, Evt](
|
|||
init: TcpPipelineHandler.Init[Ctx, Cmd, Evt],
|
||||
connection: ActorRef,
|
||||
handler: ActorRef)
|
||||
extends Actor {
|
||||
extends Actor with RequiresMessageQueue[UnboundedMessageQueueSemantics] {
|
||||
|
||||
import init._
|
||||
import TcpPipelineHandler._
|
||||
|
|
@ -150,4 +151,4 @@ class TcpReadWriteAdapter[Ctx <: PipelineContext] extends PipelineStage[Ctx, Byt
|
|||
case cmd: Tcp.Command ⇒ ctx.singleCommand(cmd)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue