object pool for InboundEnvelope
This commit is contained in:
parent
2e0986254c
commit
64a61d5a4c
13 changed files with 182 additions and 73 deletions
|
|
@ -105,7 +105,7 @@ private[akka] class InboundControlJunction
|
|||
// InHandler
|
||||
override def onPush(): Unit = {
|
||||
grab(in) match {
|
||||
case env @ InboundEnvelope(_, _, _: ControlMessage, _, _) ⇒
|
||||
case env: InboundEnvelope if env.message.isInstanceOf[ControlMessage] ⇒
|
||||
observers.foreach(_.notify(env))
|
||||
pull(in)
|
||||
case env ⇒
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue