Option value class, to avoid allocations for optional sender
This commit is contained in:
parent
c808522f6d
commit
a814034342
25 changed files with 191 additions and 100 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue