Package akka.stream.impl.io
Class ByteStringParser<T>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
-
- akka.stream.stage.GraphStage<FlowShape<ByteString,T>>
-
- akka.stream.impl.io.ByteStringParser<T>
-
- All Implemented Interfaces:
Graph<FlowShape<ByteString,T>,NotUsed>
- Direct Known Subclasses:
DeflateDecompressorBase
,TcpFraming
public abstract class ByteStringParser<T> extends GraphStage<FlowShape<ByteString,T>>
INTERNAL API
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ByteStringParser.ByteReader
static class
ByteStringParser.FinishedParser$
static class
ByteStringParser.ParseResult<T>
param: result - parser can return some element for downstream or return None if no element was generated in this step and parsing should immediately continue with the next step.static class
ByteStringParser.ParseResult$
static interface
ByteStringParser.ParseStep<T>
static class
ByteStringParser.ParsingException
class
ByteStringParser.ParsingLogic
-
Nested classes/interfaces inherited from interface akka.stream.Graph
Graph.GraphMapMatVal<S extends Shape,M>
-
-
Constructor Summary
Constructors Constructor Description ByteStringParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
CompactionThreshold()
Attributes
initialAttributes()
static java.lang.Exception
NeedMoreData()
FlowShape<ByteString,T>
shape()
The shape of a graph is all that is externally visible: its inlets and outlets.-
Methods inherited from class akka.stream.stage.GraphStage
createLogic, createLogicAndMaterializedValue
-
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
createLogicAndMaterializedValue, traversalBuilder, withAttributes
-
-
-
-
Method Detail
-
CompactionThreshold
public static int CompactionThreshold()
-
NeedMoreData
public static java.lang.Exception NeedMoreData()
-
initialAttributes
public Attributes initialAttributes()
- Overrides:
initialAttributes
in classGraphStageWithMaterializedValue<FlowShape<ByteString,T>,NotUsed>
-
shape
public final FlowShape<ByteString,T> shape()
Description copied from interface:Graph
The shape of a graph is all that is externally visible: its inlets and outlets.
-
-