Package com.google.code.rees.scope.conversation.context

Examples of com.google.code.rees.scope.conversation.context.DefaultConversationContext


    //TODO this is not a great test per se

    TimeoutMonitor<ConversationContext> m = BasicTimeoutMonitor.spawnInstance(100L);
   
    for (int i = 0; i < 500; i++) {
      m.addTimeoutable(new DefaultConversationContext("sf",
          getNextId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("sfff",
          getNextId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("sff",
          getNextId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("ssss",
          getNextId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("ssdddd",
          getNextId(), 5000000L));
      m = SerializationTestingUtil.getSerializedCopy(m);
    }

    for (int ii = 0; ii < 300; ii++) {
      m.addTimeoutable(new DefaultConversationContext("s",
          getNextId(), 50L));
      for (long iii = 0; iii < 10000000; iii++) {

      }
      Thread.yield();
View Full Code Here


    //TODO this is not a great test per se

    TimeoutMonitor<ConversationContext> m = BasicTimeoutMonitor.spawnInstance(100L);
   
    for (int i = 0; i < 500; i++) {
      m.addTimeoutable(new DefaultConversationContext("sf",
          getNextId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("sfff",
          getNextId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("sff",
          getNextId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("ssss",
          getNextId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("ssdddd",
          getNextId(), 5000000L));
      m = SerializationTestingUtil.getSerializedCopy(m);
    }

    for (int ii = 0; ii < 300; ii++) {
      m.addTimeoutable(new DefaultConversationContext("s",
          getNextId(), 50L));
      for (long iii = 0; iii < 10000000; iii++) {

      }
      Thread.yield();
View Full Code Here

    //TODO this is not a great test per se

    TimeoutMonitor<ConversationContext> m = BasicTimeoutMonitor.spawnInstance(100L);
   
    for (int i = 0; i < 500; i++) {
      m.addTimeoutable(new DefaultConversationContext("sf",
          ConversationUtil.generateId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("sfff",
          ConversationUtil.generateId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("sff",
          ConversationUtil.generateId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("ssss",
          ConversationUtil.generateId(), 5000000L));
      m.addTimeoutable(new DefaultConversationContext("ssdddd",
          ConversationUtil.generateId(), 5000000L));
      m = SerializationTestingUtil.getSerializedCopy(m);
    }

    for (int ii = 0; ii < 300; ii++) {
      m.addTimeoutable(new DefaultConversationContext("s",
          ConversationUtil.generateId(), 50L));
      for (long iii = 0; iii < 10000000; iii++) {

      }
      Thread.yield();
View Full Code Here

TOP

Related Classes of com.google.code.rees.scope.conversation.context.DefaultConversationContext

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.