Package org.hive2hive.core.network.messages

Examples of org.hive2hive.core.network.messages.AcceptanceReply


    }
  }

  @Override
  public void operationComplete(FutureDirect future) throws Exception {
    AcceptanceReply reply = extractAcceptanceReply(future);
    if (reply == AcceptanceReply.OK || reply == AcceptanceReply.OK_PROVISIONAL) {
      // notify the listener about the success of sending the message
      state = DeliveryState.SUCCESS;
      latch.countDown();
    } else {
View Full Code Here


      try {
        responseObject = future.object();
        if (responseObject == null) {
          errorReason = "Returned object is null";
        } else if (responseObject instanceof AcceptanceReply) {
          AcceptanceReply reply = (AcceptanceReply) responseObject;
          return reply;
        } else {
          errorReason = "The returned object was not of type AcceptanceReply!";
        }
      } catch (Exception e) {
View Full Code Here

    }
  }

  @Override
  public void operationComplete(FutureSend future) throws Exception {
    AcceptanceReply reply = extractAcceptanceReply(future);
    if (reply == AcceptanceReply.OK  || reply == AcceptanceReply.OK_PROVISIONAL) {
      // notify the listener about the success of sending the message
      state = DeliveryState.SUCCESS;
      latch.countDown();
    } else {
View Full Code Here

      } else {
        Object firstReturnedObject = returndedObject.iterator().next();
        if (firstReturnedObject == null) {
          errorReason = "First returned object is null.";
        } else if (firstReturnedObject instanceof AcceptanceReply) {
          AcceptanceReply reply = (AcceptanceReply) firstReturnedObject;
          return reply;
        } else {
          errorReason = "The returned object was not of type AcceptanceReply!";
        }
      }
View Full Code Here

TOP

Related Classes of org.hive2hive.core.network.messages.AcceptanceReply

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.