sealed trait Stage[-In, +Out] extends AnyRef
General interface for stream transformation.
Custom Stage
implementations are intended to be used with
akka.stream.scaladsl.FlowOps#transform or
akka.stream.javadsl.Flow#transform to extend the Flow
API when there
is no specialized operator that performs the transformation.
Custom implementations are subclasses of PushPullStage or DetachedStage. Sometimes it is convenient to extend StatefulStage for support of become like behavior.
It is possible to keep state in the concrete Stage
instance with
ordinary instance variables. The Transformer
is executed by an actor and
therefore you do not have to add any additional thread safety or memory
visibility constructs to access the state from the callback methods.
- Annotations
- @deprecated
- Deprecated
(Since version 2.4.2) Please use GraphStage instead.
- Source
- Stage.scala
- See also
- Alphabetic
- By Inheritance
- Stage
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Stage[In, Out], B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def ensuring(cond: (Stage[In, Out]) ⇒ Boolean, msg: ⇒ Any): Stage[In, Out]
- def ensuring(cond: (Stage[In, Out]) ⇒ Boolean): Stage[In, Out]
- def ensuring(cond: Boolean, msg: ⇒ Any): Stage[In, Out]
- def ensuring(cond: Boolean): Stage[In, Out]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def →[B](y: B): (Stage[In, Out], B)