format source with scalafmt, #26511
This commit is contained in:
parent
2ba9b988df
commit
75579bed17
779 changed files with 15729 additions and 13096 deletions
|
|
@ -686,9 +686,10 @@ class SubSource[Out, Mat](
|
|||
*/
|
||||
@Deprecated
|
||||
@deprecated("Use the overloaded one which accepts java.time.Duration instead.", since = "2.5.12")
|
||||
def groupedWeightedWithin(maxWeight: Long,
|
||||
costFn: function.Function[Out, java.lang.Long],
|
||||
d: FiniteDuration): javadsl.SubSource[java.util.List[Out @uncheckedVariance], Mat] =
|
||||
def groupedWeightedWithin(
|
||||
maxWeight: Long,
|
||||
costFn: function.Function[Out, java.lang.Long],
|
||||
d: FiniteDuration): javadsl.SubSource[java.util.List[Out @uncheckedVariance], Mat] =
|
||||
new SubSource(delegate.groupedWeightedWithin(maxWeight, d)(costFn.apply).map(_.asJava))
|
||||
|
||||
/**
|
||||
|
|
@ -709,9 +710,10 @@ class SubSource[Out, Mat](
|
|||
* `maxWeight` must be positive, and `d` must be greater than 0 seconds, otherwise
|
||||
* IllegalArgumentException is thrown.
|
||||
*/
|
||||
def groupedWeightedWithin(maxWeight: Long,
|
||||
costFn: function.Function[Out, java.lang.Long],
|
||||
d: java.time.Duration): javadsl.SubSource[java.util.List[Out @uncheckedVariance], Mat] =
|
||||
def groupedWeightedWithin(
|
||||
maxWeight: Long,
|
||||
costFn: function.Function[Out, java.lang.Long],
|
||||
d: java.time.Duration): javadsl.SubSource[java.util.List[Out @uncheckedVariance], Mat] =
|
||||
groupedWeightedWithin(maxWeight, costFn, d.asScala)
|
||||
|
||||
/**
|
||||
|
|
@ -935,8 +937,9 @@ class SubSource[Out, Mat](
|
|||
* '''Cancels when''' downstream cancels
|
||||
*
|
||||
*/
|
||||
def recoverWithRetries(attempts: Int,
|
||||
pf: PartialFunction[Throwable, Graph[SourceShape[Out], NotUsed]]): SubSource[Out, Mat] =
|
||||
def recoverWithRetries(
|
||||
attempts: Int,
|
||||
pf: PartialFunction[Throwable, Graph[SourceShape[Out], NotUsed]]): SubSource[Out, Mat] =
|
||||
new SubSource(delegate.recoverWithRetries(attempts, pf))
|
||||
|
||||
/**
|
||||
|
|
@ -1050,8 +1053,9 @@ class SubSource[Out, Mat](
|
|||
* @param aggregate Takes the currently aggregated value and the current pending element to produce a new aggregate
|
||||
*
|
||||
*/
|
||||
def conflateWithSeed[S](seed: function.Function[Out, S],
|
||||
aggregate: function.Function2[S, Out, S]): SubSource[S, Mat] =
|
||||
def conflateWithSeed[S](
|
||||
seed: function.Function[Out, S],
|
||||
aggregate: function.Function2[S, Out, S]): SubSource[S, Mat] =
|
||||
new SubSource(delegate.conflateWithSeed(seed.apply)(aggregate.apply))
|
||||
|
||||
/**
|
||||
|
|
@ -1107,9 +1111,10 @@ class SubSource[Out, Mat](
|
|||
* @param seed Provides the first state for a batched value using the first unconsumed element as a start
|
||||
* @param aggregate Takes the currently batched value and the current pending element to produce a new aggregate
|
||||
*/
|
||||
def batch[S](max: Long,
|
||||
seed: function.Function[Out, S],
|
||||
aggregate: function.Function2[S, Out, S]): SubSource[S, Mat] =
|
||||
def batch[S](
|
||||
max: Long,
|
||||
seed: function.Function[Out, S],
|
||||
aggregate: function.Function2[S, Out, S]): SubSource[S, Mat] =
|
||||
new SubSource(delegate.batch(max, seed.apply)(aggregate.apply))
|
||||
|
||||
/**
|
||||
|
|
@ -1140,10 +1145,11 @@ class SubSource[Out, Mat](
|
|||
* @param seed Provides the first state for a batched value using the first unconsumed element as a start
|
||||
* @param aggregate Takes the currently batched value and the current pending element to produce a new batch
|
||||
*/
|
||||
def batchWeighted[S](max: Long,
|
||||
costFn: function.Function[Out, java.lang.Long],
|
||||
seed: function.Function[Out, S],
|
||||
aggregate: function.Function2[S, Out, S]): SubSource[S, Mat] =
|
||||
def batchWeighted[S](
|
||||
max: Long,
|
||||
costFn: function.Function[Out, java.lang.Long],
|
||||
seed: function.Function[Out, S],
|
||||
aggregate: function.Function2[S, Out, S]): SubSource[S, Mat] =
|
||||
new SubSource(delegate.batchWeighted(max, costFn.apply, seed.apply)(aggregate.apply))
|
||||
|
||||
/**
|
||||
|
|
@ -1228,8 +1234,9 @@ class SubSource[Out, Mat](
|
|||
* @param initial the initial element to be emitted, in case upstream is able to stall the entire stream.
|
||||
* @see [[#expand]]
|
||||
*/
|
||||
def extrapolate(extrapolator: function.Function[Out @uncheckedVariance, java.util.Iterator[Out @uncheckedVariance]],
|
||||
initial: Out @uncheckedVariance): SubSource[Out, Mat] =
|
||||
def extrapolate(
|
||||
extrapolator: function.Function[Out @uncheckedVariance, java.util.Iterator[Out @uncheckedVariance]],
|
||||
initial: Out @uncheckedVariance): SubSource[Out, Mat] =
|
||||
new SubSource(delegate.extrapolate(in => extrapolator(in).asScala, Some(initial)))
|
||||
|
||||
/**
|
||||
|
|
@ -1534,8 +1541,9 @@ class SubSource[Out, Mat](
|
|||
*
|
||||
* '''Cancels when''' downstream cancels
|
||||
*/
|
||||
def zipWith[Out2, Out3](that: Graph[SourceShape[Out2], _],
|
||||
combine: function.Function2[Out, Out2, Out3]): SubSource[Out3, Mat] =
|
||||
def zipWith[Out2, Out3](
|
||||
that: Graph[SourceShape[Out2], _],
|
||||
combine: function.Function2[Out, Out2, Out3]): SubSource[Out3, Mat] =
|
||||
new SubSource(delegate.zipWith[Out2, Out3](that)(combinerToScala(combine)))
|
||||
|
||||
/**
|
||||
|
|
@ -1551,8 +1559,9 @@ class SubSource[Out, Mat](
|
|||
*
|
||||
* '''Cancels when''' downstream cancels
|
||||
*/
|
||||
def zipLatestWith[Out2, Out3](that: Graph[SourceShape[Out2], _],
|
||||
combine: function.Function2[Out, Out2, Out3]): SubSource[Out3, Mat] =
|
||||
def zipLatestWith[Out2, Out3](
|
||||
that: Graph[SourceShape[Out2], _],
|
||||
combine: function.Function2[Out, Out2, Out3]): SubSource[Out3, Mat] =
|
||||
new SubSource(delegate.zipLatestWith[Out2, Out3](that)(combinerToScala(combine)))
|
||||
|
||||
/**
|
||||
|
|
@ -1854,10 +1863,11 @@ class SubSource[Out, Mat](
|
|||
* '''Cancels when''' downstream cancels
|
||||
*
|
||||
*/
|
||||
def throttle(elements: Int,
|
||||
per: java.time.Duration,
|
||||
maximumBurst: Int,
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
def throttle(
|
||||
elements: Int,
|
||||
per: java.time.Duration,
|
||||
maximumBurst: Int,
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
new SubSource(delegate.throttle(elements, per.asScala, maximumBurst, mode))
|
||||
|
||||
/**
|
||||
|
|
@ -1892,9 +1902,10 @@ class SubSource[Out, Mat](
|
|||
* '''Cancels when''' downstream cancels
|
||||
*
|
||||
*/
|
||||
def throttle(cost: Int,
|
||||
per: java.time.Duration,
|
||||
costCalculation: function.Function[Out, Integer]): javadsl.SubSource[Out, Mat] =
|
||||
def throttle(
|
||||
cost: Int,
|
||||
per: java.time.Duration,
|
||||
costCalculation: function.Function[Out, Integer]): javadsl.SubSource[Out, Mat] =
|
||||
new SubSource(delegate.throttle(cost, per.asScala, costCalculation.apply _))
|
||||
|
||||
/**
|
||||
|
|
@ -1938,11 +1949,12 @@ class SubSource[Out, Mat](
|
|||
*/
|
||||
@Deprecated
|
||||
@deprecated("Use the overloaded one which accepts java.time.Duration instead.", since = "2.5.12")
|
||||
def throttle(cost: Int,
|
||||
per: FiniteDuration,
|
||||
maximumBurst: Int,
|
||||
costCalculation: function.Function[Out, Integer],
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
def throttle(
|
||||
cost: Int,
|
||||
per: FiniteDuration,
|
||||
maximumBurst: Int,
|
||||
costCalculation: function.Function[Out, Integer],
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
new SubSource(delegate.throttle(cost, per, maximumBurst, costCalculation.apply _, mode))
|
||||
|
||||
/**
|
||||
|
|
@ -1984,11 +1996,12 @@ class SubSource[Out, Mat](
|
|||
* '''Cancels when''' downstream cancels
|
||||
*
|
||||
*/
|
||||
def throttle(cost: Int,
|
||||
per: java.time.Duration,
|
||||
maximumBurst: Int,
|
||||
costCalculation: function.Function[Out, Integer],
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
def throttle(
|
||||
cost: Int,
|
||||
per: java.time.Duration,
|
||||
maximumBurst: Int,
|
||||
costCalculation: function.Function[Out, Integer],
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
new SubSource(delegate.throttle(cost, per.asScala, maximumBurst, costCalculation.apply _, mode))
|
||||
|
||||
/**
|
||||
|
|
@ -2033,10 +2046,11 @@ class SubSource[Out, Mat](
|
|||
*/
|
||||
@Deprecated
|
||||
@deprecated("Use throttle without `maximumBurst` parameter instead.", "2.5.12")
|
||||
def throttleEven(cost: Int,
|
||||
per: FiniteDuration,
|
||||
costCalculation: (Out) => Int,
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
def throttleEven(
|
||||
cost: Int,
|
||||
per: FiniteDuration,
|
||||
costCalculation: (Out) => Int,
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
new SubSource(delegate.throttleEven(cost, per, costCalculation.apply _, mode))
|
||||
|
||||
/**
|
||||
|
|
@ -2051,10 +2065,11 @@ class SubSource[Out, Mat](
|
|||
*/
|
||||
@Deprecated
|
||||
@deprecated("Use throttle without `maximumBurst` parameter instead.", "2.5.12")
|
||||
def throttleEven(cost: Int,
|
||||
per: java.time.Duration,
|
||||
costCalculation: (Out) => Int,
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
def throttleEven(
|
||||
cost: Int,
|
||||
per: java.time.Duration,
|
||||
costCalculation: (Out) => Int,
|
||||
mode: ThrottleMode): javadsl.SubSource[Out, Mat] =
|
||||
throttleEven(cost, per.asScala, costCalculation, mode)
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue