Package com.griddynamics.gridkit.coherence.patterns.message.benchmark

Examples of com.griddynamics.gridkit.coherence.patterns.message.benchmark.BenchmarkMessage


       
        while (messagesCount-- > 0)
        {
          senderSpeedLimit.accure();
         
          facade.publishMessage(sendTopics.get(rnd.nextInt(sendTopics.size())), (new BenchmarkMessage(id + messagesCount)).send());
        }
       
        //Sending poison pills
        for (Identifier t : allTopics)
        {
          facade.publishMessage(t, (new BenchmarkMessage(0, true)).send());
        }
       
        finishLatch.countDown();
      }
      catch (Throwable t)
View Full Code Here


        //TODO maybe pause is needed to wait other members to subscribe
        startBarrier.await();   
       
        while (true)
        { 
          BenchmarkMessage m = (BenchmarkMessage)subscriber.getMessage();
         
          workerResult.add(m.receive());
         
          if (m.isPoisonPill())
          {
            int i = poisonPillsReceived.incrementAndGet();
           
            System.out.println("Recived pill " + i + " needed " + poisonPillsToReceive);
           
View Full Code Here

       
        while (messagesCount-- > 0)
        {
          senderSpeedLimit.accure();
         
          facade.publishMessage(sendQueues[rnd.nextInt(sendQueues.length)], (new BenchmarkMessage(id + messagesCount)).send());
        }
       
        finishLatch.countDown();
      }
      catch (Throwable t)
View Full Code Here

TOP

Related Classes of com.griddynamics.gridkit.coherence.patterns.message.benchmark.BenchmarkMessage

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.