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
|
|
@ -19,6 +19,7 @@ import akka.io.IO.HasFailureMessage
|
|||
import akka.util.Helpers.Requiring
|
||||
import akka.event.LoggingAdapter
|
||||
import akka.util.SerializedSuspendableExecutionContext
|
||||
import akka.dispatch.{ UnboundedMessageQueueSemantics, RequiresMessageQueue }
|
||||
|
||||
abstract class SelectionHandlerSettings(config: Config) {
|
||||
import config._
|
||||
|
|
@ -56,7 +57,8 @@ private[io] object SelectionHandler {
|
|||
case object WriteInterest
|
||||
}
|
||||
|
||||
private[io] class SelectionHandler(settings: SelectionHandlerSettings) extends Actor with ActorLogging {
|
||||
private[io] class SelectionHandler(settings: SelectionHandlerSettings) extends Actor with ActorLogging
|
||||
with RequiresMessageQueue[UnboundedMessageQueueSemantics] {
|
||||
import SelectionHandler._
|
||||
import settings._
|
||||
|
||||
|
|
@ -211,4 +213,4 @@ private[io] class SelectionHandler(settings: SelectionHandlerSettings) extends A
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue