final
class
Valve[A] extends GraphStageWithMaterializedValue[FlowShape[A, A], ValveSwitch]
Instance Constructors
-
Type Members
-
type
Shape = FlowShape[A, A]
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
addAttributes(attr: Attributes): Graph[FlowShape[A, A], ValveSwitch]
-
final
def
asInstanceOf[T0]: T0
-
def
async: Graph[FlowShape[A, A], ValveSwitch]
-
def
clone(): AnyRef
-
def
createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, ValveSwitch)
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
val
in: Inlet[A]
-
def
initialAttributes: Attributes
-
final
def
isInstanceOf[T0]: Boolean
-
final
lazy val
module: Module
-
def
named(name: String): Graph[FlowShape[A, A], ValveSwitch]
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
out: Outlet[A]
-
val
shape: FlowShape[A, A]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
final
def
withAttributes(attr: Attributes): Graph[FlowShape[A, A], ValveSwitch]
Inherited from GraphStageWithMaterializedValue[FlowShape[A, A], ValveSwitch]
Inherited from AnyRef
Inherited from Any
Materializes into a ValveSwitch which provides a the method flip that stops or restarts the flow of elements passing through the stage. As long as the valve is closed it will backpressure.
Note that closing the valve could result in one element being buffered inside the stage, and if the stream completes or fails while being closed, that element may be lost.