// Perform XHR, feed results into reorderer, get callbacks
recoverer.recoverPayloads(objectId, currentClientVersion, new Recoverer.Callback() {
@Override
public void onPayloadsRecovered(JsonArray<RecoveredPayload> payloads, int currentVersion) {
for (int i = 0; i < payloads.size(); i++) {
RecoveredPayload payload = payloads.get(i);
invalidationReorderer.acceptItem(payload.getPayload(), payload.getPayloadVersion());
}
invalidationReorderer.skipToVersion(currentVersion + 1);
isRecovering = false;
invalidationReorderer.setTimeoutEnabled(true);