Examples of SubscribeMessage


Examples of asia.stampy.client.message.subscribe.SubscribeMessage

    System.out.println("Session is open (should not be)? " + gateway.isConnected(hostPort));
  }

  public void testSubscription() throws Exception {
    SubscribeMessage message = new SubscribeMessage("destination", "subscription");
    message.getHeader().setAck(Ack.clientIndividual);
    gateway.broadcastMessage(message);
    synchronized (waiter) {
      waiter.wait();
    }
  }
View Full Code Here

Examples of asia.stampy.client.message.subscribe.SubscribeMessage

    UnsubscribeMessage message = new UnsubscribeMessage(id);
    getGateway().broadcastMessage(message);
  }

  private void sendSubscribe(String id) throws InterceptException {
    SubscribeMessage message = new SubscribeMessage("over/there", id);
    getGateway().broadcastMessage(message);
  }
View Full Code Here

Examples of asia.stampy.client.message.subscribe.SubscribeMessage

      break;
    case STOMP:
      message = (MSG) new StompMessage();
      break;
    case SUBSCRIBE:
      message = (MSG) new SubscribeMessage();
      break;
    case UNSUBSCRIBE:
      message = (MSG) new UnsubscribeMessage();
      break;
    default:
View Full Code Here

Examples of ch.rasc.wampspring.message.SubscribeMessage

    case PUBLISH:
      PublishMessage publishMessage = (PublishMessage) message;
      handlePubSubMessage(publishMessage, publishMessage.getEvent(), publishMessage.getTopicURI(), publishMethods);
      break;
    case SUBSCRIBE:
      SubscribeMessage subscribeMessage = (SubscribeMessage) message;
      handlePubSubMessage(subscribeMessage, null, subscribeMessage.getTopicURI(), subscribeMethods);
      break;
    case UNSUBSCRIBE:
      UnsubscribeMessage unsubscribeMessage = (UnsubscribeMessage) message;
      handlePubSubMessage(unsubscribeMessage, null, unsubscribeMessage.getTopicURI(), unsubscribeMethods);
      break;
View Full Code Here

Examples of de.dwerth.gntpserver.gntp.messages.SubscribeMessage

    if (messageType.equals(GNTPMessage.NOTIFY)) {
      retVal = new NotifyMessage();
    } else if (messageType.equals(GNTPMessage.REGISTER)) {
      retVal = new RegisterMessage();
    } else if (messageType.equals(GNTPMessage.SUBSCRIBE)) {
      retVal = new SubscribeMessage();
    } else {
      throw new RuntimeException("Unknown Message Type: " + messageType);
    }

    String encryptionAlgorithmID = null;
View Full Code Here

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

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

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