Class to Simulate Server Long Polling