private boolean allMessagesReceived(boolean hasRVV) {
      synchronized (endLock) {
        return lastChunkReceived && (chunksExpected == chunksProcessed)
            && (!hasRVV || returnRVV != null);
      }
    }
whether the last chunk has been processed
geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/FetchEntriesMessage.java