Class AbstractMessageDeframer
java.lang.Object
com.linecorp.armeria.common.grpc.protocol.AbstractMessageDeframer
- Direct Known Subclasses:
ArmeriaMessageDeframer
A skeletal implementation of gRPC message deframer. See
gRPC Wire Format
for more detail on the protocol.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractMessageDeframer(int maxMessageLength) Creates a new instance with the specifiedmaxMessageLength. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractMessageDeframerdecompressor(@Nullable Decompressor decompressor) Sets theDecompressorfor this deframer.protected final DeframedMessagereadBody(com.linecorp.armeria.common.stream.StreamDecoderInput in) Processes the body of the gRPC compression frame.protected final voidreadHeader(com.linecorp.armeria.common.stream.StreamDecoderInput in) Processes the gRPC compression header which is composed of the compression flag and the outer frame length.
-
Field Details
-
NO_MAX_INBOUND_MESSAGE_SIZE
public static final int NO_MAX_INBOUND_MESSAGE_SIZE- See Also:
-
-
Constructor Details
-
AbstractMessageDeframer
protected AbstractMessageDeframer(int maxMessageLength) Creates a new instance with the specifiedmaxMessageLength.
-
-
Method Details
-
readHeader
protected final void readHeader(com.linecorp.armeria.common.stream.StreamDecoderInput in) Processes the gRPC compression header which is composed of the compression flag and the outer frame length. -
readBody
Processes the body of the gRPC compression frame. A single compression frame may contain several gRPC messages within it. -
decompressor
Sets theDecompressorfor this deframer.
-