Class DeframedMessage

java.lang.Object
com.linecorp.armeria.common.grpc.protocol.DeframedMessage
All Implemented Interfaces:
com.linecorp.armeria.common.util.SafeCloseable, AutoCloseable

@UnstableApi public final class DeframedMessage extends Object implements com.linecorp.armeria.common.util.SafeCloseable
A deframed message. For uncompressed messages, we have the entire buffer available and return it as is in buf to optimize parsing. For compressed messages, we will parse incrementally and thus return an InputStream in stream.
  • Constructor Details

    • DeframedMessage

      public DeframedMessage(ByteBuf buf, int type)
      Creates a new instance with the specified ByteBuf and type.
    • DeframedMessage

      public DeframedMessage(InputStream stream, int type)
      Creates a new instance with the specified InputStream and type.
  • Method Details