Package com.sun.sgs.protocol

Examples of com.sun.sgs.protocol.RequestFailureException


  if (!loggedIn) {
      logger.log(
    Level.FINE,
    "request received before login completed:{0}", this);
      future.setException(
    new RequestFailureException(
        "session is not logged in",
        RequestFailureException.FailureReason.LOGIN_PENDING));
      return false;
  } else if (relocatePrepareCompletionHandler != null &&
       relocatePrepareCompletionHandler.isCompleted()) {
      logger.log(
    Level.FINE,
    "request received while session is relocating:{0}", this);
      future.setException(
    new RequestFailureException(
        "session is relocating",
        RequestFailureException.FailureReason.RELOCATE_PENDING));
      return false;
  } else if (!isConnected()) {
      logger.log(
    Level.FINE,
    "request received while session is disconnecting:{0}", this);
      future.setException(
    new RequestFailureException(
        "session is disconnecting",
        RequestFailureException.FailureReason.DISCONNECT_PENDING));
      return false;
  } else {
      return true;
View Full Code Here


  if (!loggedIn) {
      logger.log(
    Level.FINE,
    "request received before login completed:{0}", this);
      future.setException(
    new RequestFailureException(
        "session is not logged in",
        RequestFailureException.FailureReason.LOGIN_PENDING));
      return false;
  } else if (relocatePrepareCompletionHandler != null &&
       relocatePrepareCompletionHandler.isCompleted()) {
      logger.log(
    Level.FINE,
    "request received while session is relocating:{0}", this);
      future.setException(
    new RequestFailureException(
        "session is relocating",
        RequestFailureException.FailureReason.RELOCATE_PENDING));
      return false;
  } else if (!isConnected()) {
      logger.log(
    Level.FINE,
    "request received while session is disconnecting:{0}", this);
      future.setException(
    new RequestFailureException(
        "session is disconnecting",
        RequestFailureException.FailureReason.DISCONNECT_PENDING));
      return false;
  } else {
      return true;
View Full Code Here

TOP

Related Classes of com.sun.sgs.protocol.RequestFailureException

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.