doSuspend(entity, req, resp, resource, config, topic, suspendTimeout, scope,
writeEntity, listeners, false, suspendAnnotation.resumeOnBroadcast(),
useResumeAnnotation);
}
Subscribe subscribeAnnotation = ctx.getActionAnnotation(Subscribe.class);
if (subscribeAnnotation != null) {
int timeout = subscribeAnnotation.timeout();
Class<? extends AtmosphereResourceEventListener>[] listeners =
subscribeAnnotation.listeners();
Suspend.SCOPE scope = Suspend.SCOPE.APPLICATION;
String topic = subscribeAnnotation.value();
boolean writeEntity = subscribeAnnotation.writeEntity();
doSuspend(entity, req, resp, resource, config, topic, timeout, scope,
writeEntity, listeners, true, false, useResumeAnnotation);
}