Merge pull request #16411 from ktoso/fix-remaining-timerTransform-refs-ktoso

-str #16393 removes timerTransform mentions from scaladocs
This commit is contained in:
Konrad Malawski 2014-11-27 13:26:31 +01:00
commit cac9137aa9
5 changed files with 4 additions and 8 deletions

View file

@ -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

View file

@ -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.

View file

@ -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()))

View file

@ -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()))

View file

@ -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))