Package org.cometd.bayeux.server

Examples of org.cometd.bayeux.server.ServerChannel.publish()


   
    HashMap<String, Object> data = new HashMap<String, Object>();
    data.put("context", sites);
   
    // We publish *from* the LocalSession.
    sync.publish(this.sessionModerator.getLocalSession(), data, null);
  }

  /**
    * Retreives the four element Object engine state array and returns it.
    * @return engine state array
View Full Code Here


  /* Protected by modSyncSem. */
  private void flushModeratorQueue() {
    ServerChannel channel = this.server.getChannel(this.syncAppChannel);
    synchronized(this.modSyncQueue) {
      for (Object message: this.modSyncQueue)
        channel.publish(this.sessionModerator.getLocalSession(),
            message, null);
      this.modSyncQueue.clear();
    }
  }

View Full Code Here

    ServerChannel channel = this.getServiceRequestChannel(service);
    Map<String, Object> message = new HashMap<String, Object>();
    message.put("value", params);
    message.put("topic", topic);
    message.put("service", service);
    channel.publish(this.sessionModerator.getLocalSession(), message, null);
  }

}
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.