=str #17167 drop new overflow strategy
This commit is contained in:
parent
67f8e1b79d
commit
e863a9c703
8 changed files with 64 additions and 2 deletions
|
|
@ -249,6 +249,10 @@ private[akka] final case class Buffer[T](size: Int, overflowStrategy: OverflowSt
|
|||
buffer.enqueue(elem)
|
||||
ctx.pull()
|
||||
}
|
||||
case DropNew ⇒ { (ctx, elem) ⇒
|
||||
if (!buffer.isFull) buffer.enqueue(elem)
|
||||
ctx.pull()
|
||||
}
|
||||
case Backpressure ⇒ { (ctx, elem) ⇒
|
||||
buffer.enqueue(elem)
|
||||
if (buffer.isFull) ctx.holdUpstream()
|
||||
|
|
@ -608,4 +612,4 @@ private[akka] object Log {
|
|||
private final val DefaultLoggerName = "akka.stream.Log"
|
||||
private final val OffInt = LogLevels.Off.asInt
|
||||
private final val DefaultLogLevels = LogLevels(onElement = Logging.DebugLevel, onFinish = Logging.DebugLevel, onFailure = Logging.ErrorLevel)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue