Package nginx.clojure

Examples of nginx.clojure.NginxHttpServerChannel.addListener()


 
  @Override
  public Object[] invoke(Map<String, Object> request) {
    NginxRequest req = (NginxRequest) request;
    NginxHttpServerChannel downstream = req.handler().hijack(req, true);
    downstream.addListener(downstream, new ChannelListener<NginxHttpServerChannel>() {

      @Override
      public void onClose(NginxHttpServerChannel data) {
        log.info("***downstream closed!");
      }
View Full Code Here


    @Override
    public Object[] invoke(Map<String, Object> request) {
      NginxJavaRequest r = (NginxJavaRequest) request;
      NginxHandler handler = r.handler();
      NginxHttpServerChannel channel = handler.hijack(r, true);
      channel.addListener(channel, new ChannelListener<NginxHttpServerChannel>() {
        @Override
        public void onClose(NginxHttpServerChannel data) {
          Init.serverSentEventSubscribers.remove(data);
          NginxClojureRT.getLog().info("closing...." + data.request().nativeRequest());
        }
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.