public abstract class HybridThriftRequestHandler<ThriftRequest extends org.apache.thrift.TBase<?,?>> extends Object
Modifier | Constructor and Description |
---|---|
protected |
HybridThriftRequestHandler(ThriftRequest request) |
Modifier and Type | Method and Description |
---|---|
static <ThriftRequest extends org.apache.thrift.TBase<?,?>> |
createWithoutPayloads(ThriftRequest request)
Create request that sends no out-of-band payloads.
|
abstract int |
getNumberOfPayloads()
Total number of payloads.
|
abstract InputStream |
getPayloadStream(int index)
Fetches the data for one specific payload.
|
ThriftRequest |
getRequest()
Get thrift request.
|
abstract long |
getTotalPayloadsSizeBytes()
The sum bytes of all out-of-band payloads.
|
protected HybridThriftRequestHandler(ThriftRequest request)
public static <ThriftRequest extends org.apache.thrift.TBase<?,?>> HybridThriftRequestHandler<ThriftRequest> createWithoutPayloads(ThriftRequest request)
public ThriftRequest getRequest()
public abstract long getTotalPayloadsSizeBytes()
public abstract int getNumberOfPayloads()
public abstract InputStream getPayloadStream(int index) throws IOException
IOException