Examples of sendAndWait()


Examples of com.linkedin.helix.ClusterMessagingService.sendAndWait()

      recipientCriteria.setSessionSpecific(true);
      // wait for 30 seconds
      int timeout = 30000;
      BootstrapReplyHandler responseHandler = new BootstrapReplyHandler();

      int sentMessageCount = messagingService.sendAndWait(recipientCriteria,
          requestBackupUriRequest, responseHandler, timeout);
      if (sentMessageCount == 0)
      {
        // could not find any other node hosting the partition
      } else if (responseHandler.getBootstrapUrl() != null)
View Full Code Here

Examples of groovyx.gpars.actor.Actor.sendAndWait()

                return integer * 2;
            }
        };
        final Actor actor = Actors.reactor(messageHandler);

        assertEquals("Result is not matching", 2, actor.sendAndWait(1));
        assertEquals("Result is not matching", 4, actor.sendAndWait(2));
        assertEquals("Result is not matching", 6, actor.sendAndWait(3));
    }
}

View Full Code Here

Examples of groovyx.gpars.actor.Actor.sendAndWait()

            }
        };
        final Actor actor = Actors.reactor(messageHandler);

        assertEquals("Result is not matching", 2, actor.sendAndWait(1));
        assertEquals("Result is not matching", 4, actor.sendAndWait(2));
        assertEquals("Result is not matching", 6, actor.sendAndWait(3));
    }
}
View Full Code Here

Examples of groovyx.gpars.actor.Actor.sendAndWait()

        };
        final Actor actor = Actors.reactor(messageHandler);

        assertEquals("Result is not matching", 2, actor.sendAndWait(1));
        assertEquals("Result is not matching", 4, actor.sendAndWait(2));
        assertEquals("Result is not matching", 6, actor.sendAndWait(3));
    }
}
View Full Code Here

Examples of org.apache.helix.ClusterMessagingService.sendAndWait()

      recipientCriteria.setSessionSpecific(true);
      // wait for 30 seconds
      int timeout = 30000;
      BootstrapReplyHandler responseHandler = new BootstrapReplyHandler();

      int sentMessageCount = messagingService.sendAndWait(recipientCriteria,
          requestBackupUriRequest, responseHandler, timeout);
      if (sentMessageCount == 0)
      {
        // could not find any other node hosting the partition
      } else if (responseHandler.getBootstrapUrl() != null)
View Full Code Here

Examples of org.apache.helix.ClusterMessagingService.sendAndWait()

      // wait for 30 seconds
      int timeout = 30000;
      BootstrapReplyHandler responseHandler = new BootstrapReplyHandler();

      int sentMessageCount =
          messagingService.sendAndWait(recipientCriteria, requestBackupUriRequest, responseHandler,
              timeout);
      if (sentMessageCount == 0) {
        // could not find any other node hosting the partition
      } else if (responseHandler.getBootstrapUrl() != null) {
        System.out.println("Got bootstrap url:" + responseHandler.getBootstrapUrl());
View Full Code Here

Examples of org.apache.helix.ClusterMessagingService.sendAndWait()

      // wait for 30 seconds
      int timeout = 30000;
      BootstrapReplyHandler responseHandler = new BootstrapReplyHandler();

      int sentMessageCount =
          messagingService.sendAndWait(recipientCriteria, requestBackupUriRequest, responseHandler,
              timeout);
      if (sentMessageCount == 0) {
        // could not find any other node hosting the partition
      } else if (responseHandler.getBootstrapUrl() != null) {
        System.out.println("Got bootstrap url:" + responseHandler.getBootstrapUrl());
View Full Code Here

Examples of org.apache.helix.ClusterMessagingService.sendAndWait()

      // wait for 30 seconds
      int timeout = 30000;
      BootstrapReplyHandler responseHandler = new BootstrapReplyHandler();

      int sentMessageCount =
          messagingService.sendAndWait(recipientCriteria, requestBackupUriRequest, responseHandler,
              timeout);
      if (sentMessageCount == 0) {
        // could not find any other node hosting the partition
      } else if (responseHandler.getBootstrapUrl() != null) {
        System.out.println("Got bootstrap url:" + responseHandler.getBootstrapUrl());
View Full Code Here

Examples of org.axonframework.commandhandling.gateway.CommandGateway.sendAndWait()

            public void describeTo(Description description) {
            }
        }));

        try {
            gateway1.sendAndWait("Try this!");
            fail("Expected exception");
        } catch (RuntimeException e) {
            assertEquals("Mock", e.getMessage());
        }
    }
View Full Code Here

Examples of org.axonframework.commandhandling.gateway.DefaultCommandGateway.sendAndWait()

            public void describeTo(Description description) {
            }
        }));

        try {
            gateway1.sendAndWait("Try this!");
            fail("Expected exception");
        } catch (RuntimeException e) {
            assertEquals("Mock", e.getMessage());
        }
    }
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.