Package org.atmosphere.annotation

Examples of org.atmosphere.annotation.Subscribe


            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);
        }
       
View Full Code Here

TOP

Related Classes of org.atmosphere.annotation.Subscribe

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.