Option value class, to avoid allocations for optional sender

This commit is contained in:
Patrik Nordwall 2016-06-05 15:40:06 +02:00
parent c808522f6d
commit a814034342
25 changed files with 191 additions and 100 deletions

View file

@ -18,6 +18,7 @@ import akka.stream.stage.GraphStageWithMaterializedValue
import akka.stream.stage.InHandler
import akka.stream.stage.OutHandler
import akka.remote.UniqueAddress
import akka.util.OptionVal
/**
* INTERNAL API: Marker trait for reply messages
@ -197,7 +198,7 @@ private[akka] class OutboundControlJunction(outboundContext: OutboundContext)
}
private def wrap(message: ControlMessage): Send =
Send(message, None, outboundContext.dummyRecipient, None)
Send(message, OptionVal.None, outboundContext.dummyRecipient, None)
setHandlers(in, out, this)
}