Package org.atmosphere.cpr

Examples of org.atmosphere.cpr.Broadcaster.broadcast()


                    BroadcasterFactory
                            .getDefault()
                            .lookup("/realtime/statuses/home_timeline/" + login, true);

            if (broadcaster != null) {
                broadcaster.broadcast(notification);
            } else {
                log.info("Notification error, the broadcaster is null");
            }
        } catch (Exception e) {
            log.warn("Notification error: " + e.getMessage());
View Full Code Here


     */
    public static void push(String areaName, String data) {
//        System.out.println("=== INFO === Pushing data:\n \t " + data
//                + "\n to area " + areaName);
        Broadcaster bc = getBroadcasterForArea(areaName);
        bc.broadcast(data);
    }

    @Override
    public Object resolveArgument(MethodParameter param,
            ModelAndViewContainer cont, NativeWebRequest req,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.