예제 #1
0
 /** @param ok */
 private void handleBlockOk(BlockOk ok) {
   log.debug("Collecting blockok events :: counter = " + blockOkCounter);
   if ((--blockOkCounter) == 0) {
     try {
       log.debug("Delivering blockok on channel: " + ok.getChannel().getChannelID());
       ok.go();
     } catch (AppiaEventException e) {
       e.printStackTrace();
     }
   }
 }
예제 #2
0
  /**
   * The group os blocked. It is going to change view.
   *
   * @param ok
   */
  private void handleBlockOk(BlockOk ok) {
    log.debug("The group is blocked.");
    log.debug("Impossible to send messages. Waiting for a new View");
    isBlocked = true;

    try {
      ok.go();
    } catch (AppiaEventException e) {
      e.printStackTrace();
    }
  }