trait DetachedContext[Out] extends Context[Out]
Passed to the callback methods of DetachedStage.
#hold stops execution and at the same time putting the stage in a holding state. If the stage is in a holding state it contains one absorbed signal, therefore in this state the only possible command to call is #pushAndPull which results in two events making the balance right again: 1 hold + 1 external event = 2 external event
- Source
- Stage.scala
- Alphabetic
- By Inheritance
- DetachedContext
- 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
.Puts the stage in a finishing state so that final elements can be pushed from
onPull
.- Definition Classes
- Context
-
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.
Cancel upstreams and complete downstreams with failure.
- Definition Classes
- Context
-
abstract
def
finish(): FreeDirective
Cancel upstreams and complete downstreams successfully.
Cancel upstreams and complete downstreams successfully.
- Definition Classes
- Context
- abstract def holdDownstream(): DownstreamDirective
- abstract def holdDownstreamAndPull(): DownstreamDirective
- abstract def holdUpstream(): UpstreamDirective
- abstract def holdUpstreamAndPush(elem: Out): UpstreamDirective
-
abstract
def
isFinishing: Boolean
This returns
true
after #absorbTermination has been used.This returns
true
after #absorbTermination has been used.- Definition Classes
- Context
- abstract def isHoldingDownstream: Boolean
- abstract def isHoldingUpstream: Boolean
-
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.
Request for more elements from upstreams.
- Definition Classes
- Context
-
abstract
def
push(elem: Out): DownstreamDirective
Push one element to downstreams.
Push one element to downstreams.
- Definition Classes
- Context
-
abstract
def
pushAndFinish(elem: Out): DownstreamDirective
Push one element to downstream immediately followed by cancel of upstreams and complete of downstreams.
Push one element to downstream immediately followed by cancel of upstreams and complete of downstreams.
- Definition Classes
- Context
- abstract def pushAndPull(elem: Out): FreeDirective
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from DetachedContext[Out] to any2stringadd[DetachedContext[Out]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (DetachedContext[Out], B)
- Implicit
- This member is added by an implicit conversion from DetachedContext[Out] to ArrowAssoc[DetachedContext[Out]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
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: (DetachedContext[Out]) ⇒ Boolean, msg: ⇒ Any): DetachedContext[Out]
- Implicit
- This member is added by an implicit conversion from DetachedContext[Out] to Ensuring[DetachedContext[Out]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (DetachedContext[Out]) ⇒ Boolean): DetachedContext[Out]
- Implicit
- This member is added by an implicit conversion from DetachedContext[Out] to Ensuring[DetachedContext[Out]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): DetachedContext[Out]
- Implicit
- This member is added by an implicit conversion from DetachedContext[Out] to Ensuring[DetachedContext[Out]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): DetachedContext[Out]
- Implicit
- This member is added by an implicit conversion from DetachedContext[Out] to Ensuring[DetachedContext[Out]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
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
- Implicit
- This member is added by an implicit conversion from DetachedContext[Out] to StringFormat[DetachedContext[Out]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
isHoldingBoth: Boolean
This returns
true
when #hold has been used and it is reset tofalse
after #pushAndPull. -
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): (DetachedContext[Out], B)
- Implicit
- This member is added by an implicit conversion from DetachedContext[Out] to ArrowAssoc[DetachedContext[Out]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc