Package org.jboss.test.remoting.callback.pull.memory

Examples of org.jboss.test.remoting.callback.pull.memory.TestCallback


   private Object getCallbackMessage()
   {
      callbackCounter++;
      //byte[] bytes = new byte[5120000];
      byte[] bytes = new byte[102400];
      TestCallback callback = new TestCallback(bytes, callbackCounter);
      return callback;
   }
View Full Code Here


         counter = counter + callbacks.size();
         System.out.println("callback counter = " + counter);
         for(int i = 0; i < callbacks.size(); i++)
         {
            Object o = ((Callback) callbacks.get(i)).getCallbackObject();
            TestCallback cb = (TestCallback)o;
            cbNum = cb.getCallbackNumber();
            System.out.println("Callback number: " + cbNum);
         }
         assertEquals(counter, cbNum);

         // need to give time for server to clean up mem
View Full Code Here

TOP

Related Classes of org.jboss.test.remoting.callback.pull.memory.TestCallback

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.