Adding final declarations on a number of case-classes in Mailbox.scala, and also made constants of methods that were called frequently in the hot path
This commit is contained in:
parent
913ef5d232
commit
4313a28fbd
2 changed files with 21 additions and 18 deletions
|
|
@ -274,6 +274,11 @@ abstract class MessageDispatcher extends Serializable {
|
|||
protected[akka] def throughput: Int
|
||||
protected[akka] def throughputDeadlineTime: Int
|
||||
|
||||
@inline
|
||||
protected[akka] final val isThroughputDeadlineTimeDefined = throughputDeadlineTime > 0
|
||||
@inline
|
||||
protected[akka] final val isThroughputDefined = throughput > 1
|
||||
|
||||
protected[akka] def executeTask(invocation: TaskInvocation)
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue