new DefaultFutureResult<Long>(result.cause()).setHandler(doneHandler);
}
}
});
} else if (result.result().body().getString("status").equals("error")) {
new DefaultFutureResult<Long>(new DataException(result.result().body().getString("message"))).setHandler(doneHandler);
} else {
new DefaultFutureResult<Long>(result.result().body().getLong("result", 0)).setHandler(doneHandler);
}
}
});