Package com.kurento.kmf.jsonrpcconnector

Examples of com.kurento.kmf.jsonrpcconnector.JsonRpcConnectorException


      return getParamsType((Class<?>) paramClass.getRawType());

    }

    throw new JsonRpcConnectorException(
        "Unable to obtain the type paramter of JsonRpcHandler");
  }
View Full Code Here


    requestSender.sendRequest(request, continuation);
  }

  @Override
  public void setReconnectionTimeout(long millis) {
    throw new JsonRpcConnectorException(
        "Reconnection timeout can't be configured in the client");
  }
View Full Code Here

    BasicFuture<Response<JsonElement>> responseFuture = new BasicFuture<>(
        null);

    if (pendingRequests.putIfAbsent(id, responseFuture) != null) {
      throw new JsonRpcConnectorException(
          "Can not send a request with the id '"
              + id
              + "'. There is already a pending request with this id");
    }
View Full Code Here

    Response<JsonElement> responseJsonObject;
    try {
      responseJsonObject = responseFuture.get();
    } catch (InterruptedException e) {
      // TODO What to do in this case?
      throw new JsonRpcConnectorException(
          "Interrupted while waiting for a response", e);
    } catch (ExecutionException e) {
      // TODO Is there a better way to handle this?
      throw new JsonRpcConnectorException(
          "This exception shouldn't be thrown", e);
    }

    return MessageUtils.convertResponse(responseJsonObject, resultClass);
  }
View Full Code Here

TOP

Related Classes of com.kurento.kmf.jsonrpcconnector.JsonRpcConnectorException

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.