Class AbstractMessageDeframer

java.lang.Object
com.linecorp.armeria.common.grpc.protocol.AbstractMessageDeframer
Direct Known Subclasses:
ArmeriaMessageDeframer

public abstract class AbstractMessageDeframer extends Object
A skeletal implementation of gRPC message deframer. See gRPC Wire Format for more detail on the protocol.
  • 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 specified maxMessageLength.
  • 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

      protected final DeframedMessage readBody(com.linecorp.armeria.common.stream.StreamDecoderInput in)
      Processes the body of the gRPC compression frame. A single compression frame may contain several gRPC messages within it.
    • decompressor

      protected AbstractMessageDeframer decompressor(@Nullable @Nullable Decompressor decompressor)
      Sets the Decompressor for this deframer.