public class BufferedOutletExtended<T>
extends java.lang.Object
implements org.apache.pekko.stream.stage.OutHandler
Modifier and Type | Class and Description |
---|---|
class |
BufferedOutletExtended.ElementAndTrigger |
class |
BufferedOutletExtended.ElementAndTrigger$ |
Constructor and Description |
---|
BufferedOutletExtended(GenericOutlet<T> outlet) |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayDeque<BufferedOutletExtended.ElementAndTrigger> |
buffer() |
protected void |
doPush(BufferedOutletExtended.ElementAndTrigger elem)
override to hook into actually pushing, e.g. to keep track how much
has been pushed already (in contract, to being still cached)
|
void |
onPull() |
void |
push(T element) |
void |
pushWithTrigger(T elem,
scala.Function0<scala.runtime.BoxedUnit> trigger) |
void |
tryFlush() |
public BufferedOutletExtended(GenericOutlet<T> outlet)
public final java.util.ArrayDeque<BufferedOutletExtended.ElementAndTrigger> buffer()
protected void doPush(BufferedOutletExtended.ElementAndTrigger elem)
elem
- (undocumented)public void onPull()
onPull
in interface org.apache.pekko.stream.stage.OutHandler
public final void push(T element)
public final void pushWithTrigger(T elem, scala.Function0<scala.runtime.BoxedUnit> trigger)
public void tryFlush()