Package akka.http.impl.engine.http2
Class BufferedOutlet<T>
- java.lang.Object
-
- akka.http.impl.engine.http2.BufferedOutlet<T>
-
- All Implemented Interfaces:
akka.stream.stage.OutHandler
public class BufferedOutlet<T> extends java.lang.Object implements akka.stream.stage.OutHandlerINTERNAL API
-
-
Constructor Summary
Constructors Constructor Description BufferedOutlet(GenericOutlet<T> outlet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayDeque<T>buffer()voidcomplete()booleancompleted()protected voiddoPush(T elem)override to hook into actually pushing, e.g. to keep track how much has been pushed already (in contract, to being still cached)voidfail(java.lang.Throwable cause)voidonPull()voidpush(T elem)voidtryFlush()
-
-
-
Constructor Detail
-
BufferedOutlet
public BufferedOutlet(GenericOutlet<T> outlet)
-
-
Method Detail
-
buffer
public java.util.ArrayDeque<T> buffer()
-
complete
public void complete()
-
completed
public boolean completed()
-
doPush
protected void doPush(T elem)
override to hook into actually pushing, e.g. to keep track how much has been pushed already (in contract, to being still cached)- Parameters:
elem- (undocumented)
-
fail
public void fail(java.lang.Throwable cause)
-
onPull
public void onPull()
- Specified by:
onPullin interfaceakka.stream.stage.OutHandler
-
push
public void push(T elem)
-
tryFlush
public void tryFlush()
-
-