Package nginx.clojure.AppEventListenerManager

Examples of nginx.clojure.AppEventListenerManager.PostedEvent


    @Override
    public Object[] invoke(Map<String, Object> request) {
      /*
       * Or use NginxClojureRT.broadcastEvent(Init.LONGPOLL_EVENT,request.get(QUERY_STRING).toString());
       */
      PostedEvent event = new PostedEvent(Init.LONGPOLL_EVENT, request.get(QUERY_STRING).toString());
      NginxClojureRT.getAppEventListenerManager().broadcast(event);
      return new Object[] { NGX_HTTP_OK, null, "OK" };
    }
View Full Code Here


    @Override
    public Object[] invoke(Map<String, Object> request) {
      /*
       * Or use NginxClojureRT.broadcastEvent(Init.SEVER_SENT_EVENTS, request.get(QUERY_STRING).toString());
       */
      PostedEvent event = new PostedEvent(Init.SEVER_SENT_EVENTS, request.get(QUERY_STRING).toString());
      NginxClojureRT.getAppEventListenerManager().broadcast(event);
      return new Object[] { NGX_HTTP_OK, null, "OK" };
    }
View Full Code Here

TOP

Related Classes of nginx.clojure.AppEventListenerManager.PostedEvent

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.