288289290291292293294295296297298
int firstPageSize = firstPage.getNumberOfMessages(); firstPage = null; System.out.println("Cursor: " + cursor); cursorProvider.printDebug(); LinkedListIterator<PagedReference> iterator = cursor.iterator(); for (int i = 0; i < 1000; i++) {
304305306307308309310311312313314
if (i < firstPageSize) { cursor.ack(msg); } } cursorProvider.printDebug(); server.getStorageManager().waitOnOperations(); lookupPageStore(ADDRESS).flushExecutors(); // needs to clear the context since we are using the same thread over two distinct servers
289290291292293294295296297298299
305306307308309310311312313314315