Class CombineEnvelope
java.lang.Object
org.frontcache.include.combine.CombineEnvelope
The combined response: one part per requested member, in the order the members were sent.
See docs/archive/combine-reduce-proposal.md section 6.
{"v":1,"parts":[{"q":"id=1","status":200,"headers":{...},"body":"..."}, ...]}
parts is positional against fc-part-{i}: parts.size() must equal the
requested count and parts.get(i) must answer fc-part-i. Keying by query string
instead was rejected - it would make the edge re-normalise query strings to match them up, and a
normalisation mismatch is a silent wrong-content bug rather than a loud one.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(CombinePart part) static CombineEnvelopefromJson(byte[] json) static CombineEnvelopegetParts()intgetV()voidsetParts(List<CombinePart> parts) voidsetV(int v) toJson()
-
Constructor Details
-
CombineEnvelope
public CombineEnvelope()
-
-
Method Details
-
getV
public int getV() -
setV
public void setV(int v) -
getParts
-
setParts
-
add
-
toJson
- Throws:
IOException
-
fromJson
- Throws:
IOException
-
fromJson
- Throws:
IOException
-