public interface FrameHeaderReader
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the header and make it available to read a new header.
|
boolean |
isComplete() |
int |
payloadSize()
As 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.
|
boolean |
read(TTransport transport)
(Nonblocking) Read fields from underlying transport layer.
|
byte[] |
toBytes() |
int payloadSize()
byte[] toBytes()
java.lang.IllegalStateException - if isComplete returns false.boolean isComplete()
void clear()
boolean read(TTransport transport) throws TSaslNegotiationException, TTransportException
transport - underlying transport.TSaslNegotiationException - if fail to read a valid header of a sasl negotiation message.TTransportException - if io error.