sealed trait Context[Out] extends LifecycleContext
Passed to the callback methods of PushPullStage and StatefulStage.
- Source
- Stage.scala
- Alphabetic
- By Inheritance
- Context
- LifecycleContext
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
absorbTermination(): TerminationDirective
Puts the stage in a finishing state so that final elements can be pushed from
onPull
. -
abstract
def
attributes: Attributes
Returns operation attributes associated with the this Stage
Returns operation attributes associated with the this Stage
- Definition Classes
- LifecycleContext
-
abstract
def
fail(cause: Throwable): FreeDirective
Cancel upstreams and complete downstreams with failure.
-
abstract
def
finish(): FreeDirective
Cancel upstreams and complete downstreams successfully.
-
abstract
def
isFinishing: Boolean
This returns
true
after #absorbTermination has been used. -
abstract
def
materializer: Materializer
Returns the Materializer that was used to materialize this Stage.
Returns the Materializer that was used to materialize this Stage. It can be used to materialize sub-flows.
- Definition Classes
- LifecycleContext
-
abstract
def
pull(): UpstreamDirective
Request for more elements from upstreams.
-
abstract
def
push(elem: Out): DownstreamDirective
Push one element to downstreams.
-
abstract
def
pushAndFinish(elem: Out): DownstreamDirective
Push one element to downstream immediately followed by cancel of upstreams and complete of downstreams.
Concrete 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): (Context[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: (Context[Out]) ⇒ Boolean, msg: ⇒ Any): Context[Out]
- def ensuring(cond: (Context[Out]) ⇒ Boolean): Context[Out]
- def ensuring(cond: Boolean, msg: ⇒ Any): Context[Out]
- def ensuring(cond: Boolean): Context[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): (Context[Out], B)