public static class FakeBatchableApi.SquarerBatchingDescriptor extends Object implements BatchingDescriptor<FakeBatchableApi.LabeledIntList,List<Integer>>
| Constructor and Description |
|---|
SquarerBatchingDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
long |
countBytes(FakeBatchableApi.LabeledIntList request)
Returns the size in bytes of this request.
|
long |
countElements(FakeBatchableApi.LabeledIntList request)
Returns the number of elements contained in this request.
|
PartitionKey |
getBatchPartitionKey(FakeBatchableApi.LabeledIntList request)
Returns the value of the partition key for the given request.
|
RequestBuilder<FakeBatchableApi.LabeledIntList> |
getRequestBuilder()
Get the Builder object for the request type RequestT.
|
void |
splitException(Throwable throwable,
Collection<? extends BatchedRequestIssuer<List<Integer>>> batch)
Splits the exception that resulted from a batched call into an individual setException call on
each RequestIssuer.
|
void |
splitResponse(List<Integer> batchResponse,
Collection<? extends BatchedRequestIssuer<List<Integer>>> batch)
Splits the result from a batched call into an individual setResponse call on each
RequestIssuer.
|
public PartitionKey getBatchPartitionKey(FakeBatchableApi.LabeledIntList request)
BatchingDescriptorgetBatchPartitionKey in interface BatchingDescriptor<FakeBatchableApi.LabeledIntList,List<Integer>>public RequestBuilder<FakeBatchableApi.LabeledIntList> getRequestBuilder()
BatchingDescriptorgetRequestBuilder in interface BatchingDescriptor<FakeBatchableApi.LabeledIntList,List<Integer>>public void splitResponse(List<Integer> batchResponse, Collection<? extends BatchedRequestIssuer<List<Integer>>> batch)
BatchingDescriptorsplitResponse in interface BatchingDescriptor<FakeBatchableApi.LabeledIntList,List<Integer>>public void splitException(Throwable throwable, Collection<? extends BatchedRequestIssuer<List<Integer>>> batch)
BatchingDescriptorsplitException in interface BatchingDescriptor<FakeBatchableApi.LabeledIntList,List<Integer>>public long countElements(FakeBatchableApi.LabeledIntList request)
BatchingDescriptorcountElements in interface BatchingDescriptor<FakeBatchableApi.LabeledIntList,List<Integer>>public long countBytes(FakeBatchableApi.LabeledIntList request)
BatchingDescriptorcountBytes in interface BatchingDescriptor<FakeBatchableApi.LabeledIntList,List<Integer>>