Interface BarrageMessageReader
- All Known Implementing Classes:
BarrageMessageReaderImpl
public interface BarrageMessageReader
A gRPC streaming reader that keeps stream specific context and converts
InputStream
s to
BarrageMessage
s.-
Method Summary
Modifier and TypeMethodDescriptionsafelyParseFrom
(BarrageOptions options, ChunkType[] columnChunkTypes, Class<?>[] columnTypes, Class<?>[] componentTypes, InputStream stream) Converts anInputStream
to aBarrageMessage
in the context of the provided parameters.
-
Method Details
-
safelyParseFrom
BarrageMessage safelyParseFrom(BarrageOptions options, ChunkType[] columnChunkTypes, Class<?>[] columnTypes, Class<?>[] componentTypes, InputStream stream) Converts anInputStream
to aBarrageMessage
in the context of the provided parameters.- Parameters:
options
- the options related to parsing this messagecolumnChunkTypes
- the types to use for each column chunkcolumnTypes
- the actual type for the columncomponentTypes
- the actual component type for the columnstream
- the input stream that holds the message to be parsed- Returns:
- a BarrageMessage filled out by the stream's payload
-