Package org.eclipse.ecf.pubsub.impl

Examples of org.eclipse.ecf.pubsub.impl.SubscribeMessage


  protected void received(ID containerID, Object data) {
    if (!(data instanceof byte[]))
      return;
   
    if (data instanceof SubscribeMessage) {
      SubscribeMessage msg = (SubscribeMessage) data;
      synchronized (subscriptionMutex) {
        subscribers.add(msg.getRequestorID());
      }
     
      return;
    }
   
View Full Code Here


      ISharedObjectContext ctx = config.getContext();
      try {
        if (subscriptions.add(containerID)) {
          ctx.sendCreate(containerID, createRemoteAgentDescription(requestorID));
        } else {
          SubscribeMessage msg = new SubscribeMessage(requestorID);
          ctx.sendMessage(containerID, SerializationUtil.serialize(msg));
        }
      } catch (IOException e) {
        // TODO Log me!
        e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.pubsub.impl.SubscribeMessage

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.