Examples of BConsumer


Examples of lupos.event.broker.distributed.model.BConsumer

     
    }
    // handles redistribution updates of Clients (redirecting of MasterBroker Messages)
    else if (msg instanceof BrokerUpdateMessageCollector){
      for (BrokerUpdateMessage message : ((BrokerUpdateMessageCollector) msg).getCollectedMessages()){
        BConsumer consumer = message.getConsumer();
        TcpConnectInfo consumerConnect = consumer.getConnectionInfo();
        SerializingMessageService msgServiceConsumer = null;
        for (PubSubServer curPSS : this.subscribers){
          if (curPSS.getMessageService().getConnectionInfo().equals(consumerConnect)){
            msgServiceConsumer = curPSS.getMessageService();
            break;
View Full Code Here

Examples of lupos.event.broker.distributed.model.BConsumer

  @Override
  public void subscriptionChanged(Subscription sub, PubSubServer server) {
    // handles this subscription change event for our model
    if (this.subTable.containsKey(sub)){
      // update old bconsumer
      BConsumer consumer = this.subTable.get(sub);
      consumer.replaceSubscription(sub);
      // manually call the handler method
      modelChanged(this.bModel);
    } else{
      // new bconsumer
      BConsumer consumer = new BConsumer(sub);
      consumer.setConnectionInfo(server.getMessageService().getConnectionInfo());
      this.bModel.addBConsumer(consumer);
      this.subTable.put(sub, consumer);
    }
   
    // removes stream if the subscription is not new
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.