@Override
      public void run2() throws CacheException {
        getCache().readyForEvents();
      }
wait unit we have the required number of events in the queue
geode-cq/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/DurableClientTestCase.java