Package org.apache.thrift.transport.sasl
Class DataFrameHeaderReader
java.lang.Object
org.apache.thrift.transport.sasl.FixedSizeHeaderReader
org.apache.thrift.transport.sasl.DataFrameHeaderReader
- All Implemented Interfaces:
FrameHeaderReader
The header for data frame, it only contains a 4-byte payload size.
-
Field Summary
FieldsFields inherited from class org.apache.thrift.transport.sasl.FixedSizeHeaderReader
byteBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected voidActions (e.g.intAs the thrift sasl specification states, all sasl messages (both for negotiatiing and for sending data) should have a header to indicate the size of the payload.Methods inherited from class org.apache.thrift.transport.sasl.FixedSizeHeaderReader
clear, isComplete, read, toBytes
-
Field Details
-
PAYLOAD_LENGTH_BYTES
public static final int PAYLOAD_LENGTH_BYTES- See Also:
-
-
Constructor Details
-
DataFrameHeaderReader
public DataFrameHeaderReader()
-
-
Method Details
-
headerSize
protected int headerSize()- Specified by:
headerSizein classFixedSizeHeaderReader- Returns:
- Size of the header.
-
onComplete
Description copied from class:FixedSizeHeaderReaderActions (e.g. validation) to carry out when the header is complete.- Specified by:
onCompletein classFixedSizeHeaderReader- Throws:
TInvalidSaslFrameException
-
payloadSize
public int payloadSize()Description copied from interface:FrameHeaderReaderAs the thrift sasl specification states, all sasl messages (both for negotiatiing and for sending data) should have a header to indicate the size of the payload.- Returns:
- size of the payload.
-