Merge pull request #16411 from ktoso/fix-remaining-timerTransform-refs-ktoso
-str #16393 removes timerTransform mentions from scaladocs
This commit is contained in:
commit
cac9137aa9
5 changed files with 4 additions and 8 deletions
|
|
@ -11,7 +11,9 @@ import scala.concurrent.duration.FiniteDuration
|
|||
/**
|
||||
* Transformer with support for scheduling keyed (named) timer events.
|
||||
*/
|
||||
abstract class TimerTransformer[-T, +U] extends TransformerLike[T, U] {
|
||||
// TODO: TimerTransformer is meant to be replaced; See https://github.com/akka/akka/issues/16410
|
||||
@deprecated("TimerTransformer is meant to be replaced; See https://github.com/akka/akka/issues/16410")
|
||||
private[akka] abstract class TimerTransformer[-T, +U] extends TransformerLike[T, U] {
|
||||
import TimerTransformer._
|
||||
private val timers = mutable.Map[Any, Timer]()
|
||||
private val timerIdGen = Iterator from 1
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ package akka.stream
|
|||
|
||||
import scala.collection.immutable
|
||||
|
||||
abstract class TransformerLike[-T, +U] {
|
||||
private[akka] abstract class TransformerLike[-T, +U] {
|
||||
/**
|
||||
* Invoked for each element to produce a (possibly empty) sequence of
|
||||
* output elements.
|
||||
|
|
|
|||
|
|
@ -284,8 +284,6 @@ class Flow[-In, +Out](delegate: scaladsl.Flow[In, Out]) {
|
|||
* Generic transformation of a stream with a custom processing [[akka.stream.stage.Stage]].
|
||||
* This operator makes it possible to extend the `Flow` API when there is no specialized
|
||||
* operator that performs the transformation.
|
||||
*
|
||||
* Note that you can use [[#timerTransform]] if you need support for scheduled events in the transformer.
|
||||
*/
|
||||
def transform[U](name: String, mkStage: japi.Creator[Stage[Out, U]]): javadsl.Flow[In, U] =
|
||||
new Flow(delegate.transform(name, () ⇒ mkStage.create()))
|
||||
|
|
|
|||
|
|
@ -389,8 +389,6 @@ class Source[+Out](delegate: scaladsl.Source[Out]) {
|
|||
* Generic transformation of a stream with a custom processing [[akka.stream.stage.Stage]].
|
||||
* This operator makes it possible to extend the `Flow` API when there is no specialized
|
||||
* operator that performs the transformation.
|
||||
*
|
||||
* Note that you can use [[#timerTransform]] if you need support for scheduled events in the transformer.
|
||||
*/
|
||||
def transform[U](name: String, mkStage: japi.Creator[Stage[Out, U]]): javadsl.Source[U] =
|
||||
new Source(delegate.transform(name, () ⇒ mkStage.create()))
|
||||
|
|
|
|||
|
|
@ -309,8 +309,6 @@ trait FlowOps[+Out] {
|
|||
* Generic transformation of a stream with a custom processing [[akka.stream.stage.Stage]].
|
||||
* This operator makes it possible to extend the `Flow` API when there is no specialized
|
||||
* operator that performs the transformation.
|
||||
*
|
||||
* Note that you can use [[#timerTransform]] if you need support for scheduled events in the transformer.
|
||||
*/
|
||||
def transform[T](name: String, mkStage: () ⇒ Stage[Out, T]): Repr[T] =
|
||||
andThen(StageFactory(mkStage, name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue