return getBroadcaster().getBroadcasterConfig().getScheduledExecutorService()
.schedule(heartBeatTask, heartBeatInterval, TimeUnit.MILLISECONDS);
}
void terminate(boolean serverInitiated) {
AtmosphereGwtHandler s = atmosphereHandler;
if (s != null) {
atmosphereHandler = null;
if (suspended) {
atmResource.resume();
}
s.cometTerminated(this, serverInitiated);
}
}