@Override
  public int size() {
    acquireReadLock();
    try {
      return idsAvailable.size();
    } finally {
      releaseReadLock();
    }
  }
Returns the size of the queue

@return the size of the queue
geode-core/src/main/java/org/apache/geode/internal/cache/ha/HARegionQueue.java