Examples of invokeOneway()


Examples of org.jboss.remoting.Client.invokeOneway()

      assertEquals(3, handler.startedCount);
     
      // This invocation should run in the ServerThread, and will not return
      // until after a response is received.
      log.info("making 4th oneway invocation");
      client.invokeOneway(SLOW + "4", null, false);
      log.info("made 4th oneway invocation");
      log.info("wait: " + (System.currentTimeMillis() - start));
      assertTrue((System.currentTimeMillis() - start >= 8000));
     
      // By the time the 4th oneway invocation returns, the 3rd oneway invocation

Examples of org.jboss.remoting.Client.invokeOneway()

     
      long start = System.currentTimeMillis();
     
      // This invocation should run in pooled thread 1.
      log.info("making 1st oneway invocation");
      client.invokeOneway(SLOW + "1", null, false);
      poolCounter++;
     
      // Wait for the connection to return to the pool.
      Thread.sleep(500);
     

Examples of org.jboss.remoting.Client.invokeOneway()

      // Wait for the connection to return to the pool.
      Thread.sleep(500);
     
      // This invocation should run in pooled thread 2.
      log.info("making 2nd oneway invocation");
      client.invokeOneway(SLOW + "2", null, false);
     
      // Wait for the connection to return to the pool.
      Thread.sleep(500);
     
      // This invocation should use the pooled connection and go into the queue.

Examples of org.jboss.remoting.Client.invokeOneway()

      // Wait for the connection to return to the pool.
      Thread.sleep(500);
     
      // This invocation should use the pooled connection and go into the queue.
      log.info("making 3rd oneway invocation");
      client.invokeOneway(SLOW + "3", null, false);
     
      // Wait for the connection to return to the pool.
      Thread.sleep(500);
     
      // This invocation should use the pooled connection and get run by the

Examples of org.jboss.remoting.Client.invokeOneway()

     
      // This invocation should use the pooled connection and get run by the
      // ServerThread.  The connection should go back into the pool but the
      // ServerThread will be busy for the next 5 seconds.
      log.info("making 4th oneway invocation");
      client.invokeOneway(SLOW + "4", null, false);
     
      // Wait for the connection to return to the pool.
      Thread.sleep(500);
     
      // This invocation should use the pooled connection and have to wait

Examples of org.jboss.remoting.Client.invokeOneway()

      Thread.sleep(500);
     
      // This invocation should use the pooled connection and have to wait
      // for 5 seconds.
      log.info("making 5th oneway invocation");
      client.invokeOneway(SLOW + "5", null, false);
     
      assertTrue((System.currentTimeMillis() - start < 3000));
      assertEquals(4, handler.startedCount);
     
      // It's necessary to wait for more than 5000 ms here because one or two

Examples of org.jboss.remoting.Client.invokeOneway()

      client.connect();
      log.info("client is connected");
      SampleCallbackHandler callbackHandler = new SampleCallbackHandler();
      client.addListener(callbackHandler, null, null, true);
      log.info("client added callback handler");
      client.invokeOneway(AsynchCallbackTestServerRoot.SYNCHRONOUS_TEST);
      Thread.sleep(1000);
      // Should still be waiting on client.
      Boolean done = (Boolean) client.invoke(AsynchCallbackTestServerRoot.GET_STATUS);
      log.info("done 1: " + done);
      assertFalse(done.booleanValue());

Examples of org.jboss.remoting.Client.invokeOneway()

      client.connect();
      log.info("client is connected");
      SampleCallbackHandler callbackHandler = new SampleCallbackHandler();
      client.addListener(callbackHandler, null, null, true);
      log.info("client added callback handler");
      client.invokeOneway(AsynchCallbackTestServerRoot.ASYNCHRONOUS_CLIENT_SIDE_TEST);
      Thread.sleep(4000);
      // Should have returned.
      Boolean done = (Boolean) client.invoke(AsynchCallbackTestServerRoot.GET_STATUS);
      assertTrue(done.booleanValue());
      assertTrue(callbackHandler.receivedCallback);

Examples of org.jboss.remoting.Client.invokeOneway()

      client.connect();
      log.info("client is connected");
      SampleCallbackHandler callbackHandler = new SampleCallbackHandler();
      client.addListener(callbackHandler, null, null, true);
      log.info("client added callback handler");
      client.invokeOneway(AsynchCallbackTestServerRoot.ASYNCHRONOUS_SERVER_SIDE_TEST);
      Thread.sleep(4000);
     
      // Should have returned.
      Boolean done = (Boolean) client.invoke(AsynchCallbackTestServerRoot.GET_STATUS);
      assertTrue(done.booleanValue());

Examples of org.jboss.remoting.Client.invokeOneway()

        
         checkUserAgent(remotingClient, metadata);

         makeExceptionInvocation(remotingClient, metadata);

         remotingClient.invokeOneway("Do something", metadata, true);

         remotingClient.invokeOneway("Do something", metadata, false);
      }
      catch (Throwable throwable)
      {
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.