133134135136137138139140141142143
boolean ok = true; AtmosphereResource resource = req.resource(); if (resource != null) { try { resource.addEventListener(new OnResume() { @Override public void onResume(AtmosphereResourceEvent event) { latch.countDown(); } });
132133134135136137138139140141142
} }); } if (onResumeMethod != null && !polling) { resource.addEventListener(new OnResume() { @Override public void onResume(AtmosphereResourceEvent event) { invoke(onResumeMethod, event); resource.removeEventListener(this); }