Class ArmeriaMessageDeframer.DeframedMessage
java.lang.Object
com.linecorp.armeria.common.grpc.protocol.ArmeriaMessageDeframer.DeframedMessage
- Enclosing class:
- ArmeriaMessageDeframer
@UnstableApi public static final class ArmeriaMessageDeframer.DeframedMessage extends Object
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 a InputStream in stream.-
Constructor Summary
Constructors Constructor Description DeframedMessage(ByteBuf buf, int type)Creates a new instance with the specifiedByteBufandtype.DeframedMessage(InputStream stream, int type)Creates a new instance with the specifiedInputStreamandtype. -
Method Summary
Modifier and Type Method Description ByteBufbuf()Returns theByteBuf.booleanequals(Object o)inthashCode()InputStreamstream()Returns theInputStream.inttype()Returns the type.
-
Constructor Details
-
DeframedMessage
Creates a new instance with the specifiedByteBufandtype. -
DeframedMessage
Creates a new instance with the specifiedInputStreamandtype.
-
-
Method Details
-
buf
Returns theByteBuf.- Returns:
- the
ByteBuf, ornullif not created withDeframedMessage(ByteBuf, int).
-
stream
Returns theInputStream.- Returns:
- the
InputStream, ornullif not created withDeframedMessage(InputStream, int).
-
type
public int type()Returns the type. -
equals
-
hashCode
public int hashCode()
-