@Override
  public boolean isEmpty() {
    int size = -1;
    synchronized (limitLock) {
      size = limit;
    }
    return base.isEmpty() || size == 0;
  }
no-arg constructor required for DataSerializable
geode-core/src/main/java/org/apache/geode/cache/query/internal/ResultsCollectionWrapper.java