Class ArmeriaMessageDeframer

java.lang.Object
com.linecorp.armeria.common.grpc.protocol.ArmeriaMessageDeframer
All Implemented Interfaces:
com.linecorp.armeria.common.stream.HttpDecoder<DeframedMessage>

@UnstableApi public class ArmeriaMessageDeframer extends Object implements com.linecorp.armeria.common.stream.HttpDecoder<DeframedMessage>
A deframer of messages transported in the gRPC wire format. See gRPC Wire Format for more detail on the protocol.

The logic has been mostly copied from io.grpc.internal.MessageDeframer, while removing the buffer abstraction in favor of using ByteBuf directly, and allowing the delivery of uncompressed frames as a ByteBuf to optimize message parsing.

  • Field Details

    • NO_MAX_INBOUND_MESSAGE_SIZE

      public static final int NO_MAX_INBOUND_MESSAGE_SIZE
      See Also:
      Constant Field Values
  • Constructor Details

    • ArmeriaMessageDeframer

      public ArmeriaMessageDeframer(int maxMessageSizeBytes)
      Construct an ArmeriaMessageDeframer for reading messages out of a gRPC request or response.
  • Method Details