예제 #1
0
  public ClientInvocationFuture invoke() {
    if (clientMessage == null) {
      throw new IllegalStateException("Request can not be null");
    }

    try {
      invokeOnSelection();
    } catch (Exception e) {
      notifyException(e);
    }
    return clientInvocationFuture;
  }
예제 #2
0
  public ClientInvocationFuture invoke() {
    assert (clientMessage != null);

    try {
      invokeOnSelection();
    } catch (Exception e) {
      if (e instanceof HazelcastOverloadException) {
        throw (HazelcastOverloadException) e;
      }
      notifyException(e);
    }
    return clientInvocationFuture;
  }